ToBytes() private method

private ToBytes ( ) : byte[]
return byte[]
        public async Task <SetupResponse> RegularSetupAsync(RegularSetup setup, CancellationToken cancellation = default(CancellationToken))
        {
            var response = await ExchangeSingleAPDUAsync(LedgerWalletConstants.LedgerWallet_CLA, LedgerWalletConstants.LedgerWallet_INS_SETUP, 0, 0, setup.ToBytes(), OK, cancellation).ConfigureAwait(false);

            return(new SetupResponse(response));
        }
Example #2
0
        public async Task <SetupResponse> RegularSetupAsync(RegularSetup setup)
        {
            var response = await ExchangeSingleAPDU(LedgerWalletConstants.LedgerWallet_CLA, LedgerWalletConstants.LedgerWallet_INS_SETUP, 0, 0, setup.ToBytes(), OK).ConfigureAwait(false);

            return(new SetupResponse(response));
        }
 public SetupResponse RegularSetup(RegularSetup setup)
 {
     using(Transport.Lock())
     {
         var response = ExchangeApdu(LedgerWalletConstants.LedgerWallet_CLA, LedgerWalletConstants.LedgerWallet_INS_SETUP, 0, 0, setup.ToBytes(), OK);
         return new SetupResponse(response);
     }
 }