
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@cityofzion/neon-ledger
Advanced tools
Wrapper for interacting with Ledger.
npm i @cityofzion/neon-node-ledger @cityofzion-neon-core
This package only provides an easy wrapper for communicating with the Ledger. You will need one of the ledger libraries depending on your use-case:
@ledgerhq/hw-transport-node-hid (NodeJs)You will need the library to instantiate the Ledger instance. After that, most of the methods can run off the Ledger instance.
Please refer to test.node.js for an example.
This helper method returns the BIP44 hexstring. The arguments are reversed as the most common use case is to change the address as opposed to the others. All arguments default to zero for easy usage.
const bipString = NeonJs.ledger.BIP44(1);
This returns a list of paths where each path represents a Ledger device. The consumer is required to instantiate the Ledger instance by calling open on the Ledger library with the selected path.
If Ledger is not support on this device, an error will be thrown.
import * as LedgerLibrary from "@ledgerhq/hw-transport-node-hid";
const paths = await neonJs.ledger.getDevicePaths(LedgerLibrary);
const ledgerInstance = LedgerLibrary.open(paths[0]);
This method retrieves the unencoded public key from the ledger.
const publicKey = await neonJs.ledger.getPublicKey(ledgerInstance, bipString);
Returns the signature as a 64 bit hexstring. You will need some assembling of the witness from the signature.
const signature = await neonJs.ledger.getSignature(
ledgerInstance,
tx,
bipString
);
FAQs
Neon Ledger integration for Node.js
The npm package @cityofzion/neon-ledger receives a total of 38 weekly downloads. As such, @cityofzion/neon-ledger popularity was classified as not popular.
We found that @cityofzion/neon-ledger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.