bdk-ffi
bdk-ffi copied to clipboard
Add support for CKTap protocol
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:
- Setup, view balance and transactions, and sweep funds from a SATSCARD card via an NFC tap.
- 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.
I found this rust lib for desktop testing: https://crates.io/crates/pcsc and this lib for cbor encoding: https://crates.io/crates/ciborium
Docs for interacting with pcsc cards on an iOS device using the "CoreNFC" framework: https://developer.apple.com/documentation/corenfc
I have some preliminary work for this issue here: https://github.com/notmandatory/rust-cktap