npm.io
2.0.12 • Published 2 weeks ago

@coolwallet/core

Licence
Apache-2.0
Version
2.0.12
Deps
16
Size
2.5 MB
Vulns
1
Weekly
0
Stars
37

CoolWallet Core SDK

CoolWallet Software Development Kit is built with Typescript, which handles the APDU requests, cryptography and some common logics.

version Typed with TypeScript code style: prettier

Install

npm install @coolwallet/core

Project Structure

| 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. |