function accountPair(seed, accountIndex) {
  var context = blake2bInit(32);
  blake2bUpdate(context, hex_uint8(seed));
  blake2bUpdate(context, hex_uint8(dec2hex(accountIndex, 4)));

  var newKey = blake2bFinal(context);
  return {
    key: uint8_hex(newKey),
    address: accountFromHexKey(uint8_hex(nacl.sign.keyPair.fromSecretKey(newKey).publicKey))
  };
}
/*
  Calculate key/address pair for a specific account in wallet
  @param  accountIndex Number 32-bit unsigned integer
  @return Object
 */
Calculate key/address pair for a specific account in wallet
Calculate key / address pair for a specific account in wallet
function accountPair(seed, accountIndex) {
  var context = blake2bInit(32);
  blake2bUpdate(context, hex_uint8(seed));
  blake2bUpdate(context, hex_uint8(dec2hex(accountIndex, 4)));
  var newKey = blake2bFinal(context);
  return {
    key: uint8_hex(newKey),
    address: accountFromHexKey(uint8_hex(nacl.sign.keyPair.fromSecretKey(newKey).publicKey))
  };
}
function accountPair ( seed , accountIndex ) { var context = blake2bInit ( 32 ) ; blake2bUpdate ( context , hex_uint8 ( seed ) ) ; blake2bUpdate ( context , hex_uint8 ( dec2hex ( accountIndex , 4 ) ) ) ; var newKey = blake2bFinal ( context ) ; return { key : uint8_hex ( newKey ) , address : accountFromHexKey ( uint8_hex ( nacl . sign . keyPair . fromSecretKey ( newKey ) . publicKey ) ) } ; }
Calculate key/address pair for a specific account in wallet
Calculate key / address pair for a specific account in wallet