chatch / Stellar Hd Wallet
Licence: apache-2.0
🔐 Key derivation for Stellar (SEP-0005) 🚀
Stars: ✭ 60
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Stellar Hd Wallet
Npm Git Install
Clones and (re)installs packages from remote git repos. See npm/npm#3055
Stars: ✭ 49 (-18.33%)
Mutual labels: npm
React Webpack Tutorial
This is a tutorial on how to get started developing a client side application using ReactJS, Webpack and Npm
Stars: ✭ 54 (-10%)
Mutual labels: npm
Framework
IONDV. Framework is a high level framework for enterprise web applications development.
Stars: ✭ 54 (-10%)
Mutual labels: npm
Floatsidebar.js
Lightweight (2kb gzipped), zero-dependency javascript library for making float sidebars based on the finite state machine
Stars: ✭ 56 (-6.67%)
Mutual labels: npm
Sigtool
Ed25519 signing, verification and encryption, decryption for arbitary files; like OpenBSD signifiy but with more functionality and written in Golang - only easier and simpler
Stars: ✭ 49 (-18.33%)
Mutual labels: ed25519
Minisign
A dead simple tool to sign files and verify digital signatures.
Stars: ✭ 1,105 (+1741.67%)
Mutual labels: ed25519
Node Blink Security
This is an npm module for communicating with Blink Home Security System
Stars: ✭ 54 (-10%)
Mutual labels: npm
Harmoware Vis
Spatial-Temporal Visualization Library using Deck.GL
Stars: ✭ 51 (-15%)
Mutual labels: npm
Gitpkg
use a sub directory of a github repo as yarn / npm dependency directly
Stars: ✭ 54 (-10%)
Mutual labels: npm
Turbolinks Prefetch
Turbolinks extends for prefetch links to speeds up your website.
Stars: ✭ 57 (-5%)
Mutual labels: npm
Changed Log
Returns all commit messages between 2 versions of an NPM module
Stars: ✭ 58 (-3.33%)
Mutual labels: npm
Postcss Import
PostCSS plugin to inline @import rules content
Stars: ✭ 1,048 (+1646.67%)
Mutual labels: npm
Quicksort Js
An implementation of Quicksort in JavaScript/TypeScript.
Stars: ✭ 60 (+0%)
Mutual labels: npm
React Native Markdown Editor
A markdown editor like github comment editor (contains preview, helper buttons)
Stars: ✭ 59 (-1.67%)
Mutual labels: npm
stellar-hd-wallet
Key derivation for Stellar (SEP-0005)
Usage
import StellarHDWallet from 'stellar-hd-wallet'
const mnemonic = StellarHDWallet.generateMnemonic()
const wallet = StellarHDWallet.fromMnemonic(mnemonic)
wallet.getPublicKey(0) // => GDKYMXOAJ5MK4EVIHHNWRGAAOUZMNZYAETMHFCD6JCVBPZ77TUAZFPKT
wallet.getSecret(0) // => SCVVKNLBHOWBNJYHD3CNROOA2P3K35I5GNTYUHLLMUHMHWQYNEI7LVED
wallet.getKeypair(0) // => StellarBase.Keypair for account 0
wallet.derive(`m/44'/148'/0'`) // => raw key for account 0 as a Buffer
// wallet instance from seeds
const seedHex =
'794fc27373add3ac7676358e868a787bcbf1edfac83edcecdb34d7f1068c645dbadba563f3f3a4287d273ac4f052d2fc650ba953e7af1a016d7b91f4d273378f'
const seedBuffer = Buffer.from(seedHex)
StellarHDWallet.fromSeed(seedHex)
StellarHDWallet.fromSeed(seedBuffer)
// mnemonics with different lengths
StellarHDWallet.generateMnemonic() // 24 words
StellarHDWallet.generateMnemonic({entropyBits: 224}) // 21 words
StellarHDWallet.generateMnemonic({entropyBits: 160}) // 18 words
StellarHDWallet.generateMnemonic({entropyBits: 128}) // 12 words
// validate a mnemonic
StellarHDWallet.validateMnemonic('too short and non wordlist words') // false
Mnemonic Language
Mnemonics can be generated in any language supported by the underlying bip39 npm module.
The full list of language keys are under exports 'wordlists' here.
Usage
import StellarHDWallet from 'stellar-hd-wallet'
// traditional chinese - 24 words
StellarHDWallet.generateMnemonic({
language: 'chinese_traditional',
})
// => '省 从 唯 芽 激 顿 埋 愤 碳 它 炸 如 青 领 涨 骤 度 牲 朱 师 即 姓 讲 蒋'
// french - 12 words
StellarHDWallet.generateMnemonic({language: 'french', entropyBits: 128})
// => 'directif terrible légume dérober science vision venimeux exulter abrasif vague mutuel innocent'
Randomness
- NodeJs: crypto.randomBytes
- Browser: window.crypto.getRandomValues
(using randombytes npm module)
Tests
All SEP-0005 test cases are exercised here against these.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].