BitBoxSwiss / bitbox-api-rs

BitBox02 client library for Rust and TypeScript
Apache License 2.0
5 stars 9 forks source link

refactor communication by making the framing protocol configurable #10

Closed benma closed 1 year ago

benma commented 1 year ago

Before, BitBox::from() internally created a U2fCommunication framing layer. We remove this and fold it into the ReadWrite trait that BitBox::from already takes. This way, the connection code can choose the framing. This will allow making a BitBoxBridge communication layer, which uses a modified u2f framing protocol.