bdk-ffi icon indicating copy to clipboard operation
bdk-ffi copied to clipboard

Add support for CKTap protocol

Open notmandatory opened this issue 2 years ago • 3 comments

Describe the enhancement

Add CKTap protocol support for BDK based wallets used on Android or iOS devices.

Use case

Supporting the CKTap protocol would allow a BDK based mobile wallet to:

  1. Setup, view balance and transactions, and sweep funds from a SATSCARD card via an NFC tap.
  2. Setup, view balance and transactions, and sign or co-sign transactions using a TAPSIGNER card via an NFC tap.

Additional context

Some functionality may make sense to move to the BDK rust library or a new rust crate, such as the CBOR message structures.

This enhancement was suggested by @nvk.

notmandatory avatar Jan 10 '23 20:01 notmandatory

I found this rust lib for desktop testing: https://crates.io/crates/pcsc and this lib for cbor encoding: https://crates.io/crates/ciborium

notmandatory avatar Jan 13 '23 06:01 notmandatory

Docs for interacting with pcsc cards on an iOS device using the "CoreNFC" framework: https://developer.apple.com/documentation/corenfc

notmandatory avatar Jan 13 '23 07:01 notmandatory

I have some preliminary work for this issue here: https://github.com/notmandatory/rust-cktap

notmandatory avatar Feb 10 '23 14:02 notmandatory