Ejemplo n.º 1
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 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));
        }
Ejemplo n.º 3
0
 public SetupResponse RegularSetup(RegularSetup setup)
 {
     return(RegularSetupAsync(setup).GetAwaiter().GetResult());
 }
 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);
     }
 }