@solar-network/ledger-transport

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @solar-network/ledger-transport

Weekly Downloads

0

Version

0.0.1

License

CC-BY-ND-4.0

Unpacked Size

41.6 kB

Total Files

7

Last publish

Collaborators

  • alessiodf
  • hodler