CoolWallet Software Development Kit is built with Typescript, which handles the APDU requests, cryptography and some common logics.
npm install @coolwallet/core
Directory | Features |
---|---|
apdu | Collections of APDU and MCU commands. |
coin | Key derivation functions base on ECDSA and EDDSA algorithms. All @coolwallet/coin packages will need to inherit Coin to work with Coolwallet SDK. |
config | Config values and some pieces of information about the Coolwallet, ex. error codes/messages. |
crypto | Commonly used cryptography, ex. hmac-sha512 , sha256 . |
device | Maintain Bluetooth device connection and using Transport to communicate with Bluetooth device. |
error | CoolWallet SDK internal error handler. |
setting | Authentication settings for CoolWallet. |
transcaction | Functions often used when creating transactions. |
transport | Have two abstract classes, BleManager and Transport .BleManager is responsible for Bluetooth status management and Transport is responsible for data transfer. |
utils | Commonly used utilities, ex. serialize and deserialize the message from Bluetooth device. |