A Rust implementation of the Coinkite Tap Protocol (cktap) for use with SATSCARD, TAPSIGNER, and SATSCHIP products.
This project provides PC/SC APDU message encoding and decoding, cvc authentication, certificate chain verification, and card response verification.
It is up to the crate user to send and receive the raw cktap APDU messages via NFC to the card by implementing the CkTransport
trait. An example implementation is provided using the optional rust pcsc
crate. Mobile users are expected to implement CkTransport
using the iOS or Android provided libraries.
- status
- read (messages)
- response verification
- derive (messages)
- response verification
- certs
- new
- nfc
- sign (messages)
- response verification
- wait
- Install and start cktap emulator
- TapSigner:
./ecard.py emulate -t --no-init
- SatsCard:
./ecard.py emulate -s
- TapSigner:
- run tests:
cargo test --features emulator
- USB PCSC NFC card reader, for example:
- Coinkite SATSCARD, TAPSIGNER, or SATSCHIP cards Install vendor PCSC driver
- Connect NFC reader to desktop system
- Place SATSCARD, TAPSIGNER, or SATSCHIP on reader
cargo run -p cktap-cli -- --help
cargo run -p cktap-cli -- certs
cargo run -p cktap-cli -- read