Files
xrpl-dev-portal/content/_code-samples/key-derivation/js
AlexanderBuzz a584f5c9d2 Update content/_code-samples/key-derivation/js/index.js
Added jonathanleis suggestion and  switched console.log to a real error being thrown

Co-authored-by: jonathanlei <jlei@ripple.com>
2022-09-16 08:21:12 +02:00
..

JavaScript key derivation examples

Generates key from a given input in Ed25519 and Secp256k1 format. On first run, you have to install the necessary node.js dedpendencies:

npm install

Command-line usage:

Password like seed

npm start "sEdSKaCy2JT7JaM7v95H9SxkhP9wS2r"

Rippled RFC1751 Mnemonic

npm start "KANT FISH GENE COST WEB JAKE CHUM HAD SOD MID KICK BOTH"

Hex formatted seed

npm start "0x21edc3dec3ef1873cf8f333381c5f360c3"

Random seed

npm start