0.0.1 • Published 2 years ago

@solar-network/ledger-transport v0.0.1

Weekly downloads
-
License
CC-BY-ND-4.0
Repository
github
Last release
2 years ago

Solar Network Ledger Transport

The official Solar Network HW Transport for Ledger Nano S/X/SPlus

Build

yarn && yarn build

Test

yarn test
# or
yarn test:coverage

Import

import SolarTransport from "@solar-network/ledger-transport";
const solar = new SolarTransport(transport);

Usage

const appName: string = solar.getAppName();
const appVersion: string = solar.getAppVersion();

const publicKey: string = solar.getPublicKey("44'/3333'/0'/0/0", userApproval?);
const extPublicKey: string = solar.getExtPublicKey("44'/3333'/0'", userApproval?);
const address: string = solar.getAddress("44'/3333'/0'/0/0", userApproval?, useMainnet?);

const msgSignature: string = solar.signMessage("44'/3333'/0'/0/0", "Hello, World!");
const txSignature: string = solar.signTransaction("44'/3333'/0'/0/0", serializedSolarTx);

Security

If you discover a security vulnerability within any of these packages, please send an e-mail to security@solar.org. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Please read the separate LICENSE file for details.