Socket
Book a DemoInstallSign in
Socket

@ont-dev/ontology-ts-sdk-ledger

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ont-dev/ontology-ts-sdk-ledger

## Overview

1.0.28
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

Ledger extension for Ontology blockchain TypeScript SDK

Overview

This is an extension of Ontology TypeScript SDK adding the support for managing private keys on Ledger Hardware wallet.

Installation

Required Tools and Dependencies

  • Node
  • Yarn (https://yarnpkg.com/lang/en/docs/install/)

Developing and Running

Execute these commands in the project's root directory:

Setup:

Install yarn

For faster building process and development experience install Yarn

npm install --global yarn

Download

git clone 'https://github.com/OntologyCommunityDevelopers/ontology-ts-sdk-ledger.git'

Development build

This will build the extension with minimum polyfilling for better debug experience.

yarn build:dev

Production build

yarn build:prod

Ledger support

Because Chrome allows communication with the Ledger only from HTTPS loaded page (which chrome extension is not), there is a IFrame based transport implemented. This IFrame needs to be served on HTTPS. The source codes for the IFrame are at https://github.com/OntologyCommunityDevelopers/ledger-forwarder.git . To set the Iframe address make a call to

Ledger.setLedgerTransport(new Ledger.LedgerTransportIframe('https://drxwrxomfjdx5.cloudfront.net/forwarder.html', true));

To use your Ledger, you also needs Official Ontology Ledger App installed on your Ledger.

Built With

Authors

License

This project is licensed under the ISC License - see the LICENSE.md file for details

Acknowledgments

Many thanks to the whole Ontology team, who done a great job bringing Ontology to life.

FAQs

Package last updated on 22 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.