Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeEd25519 describes a hyper-deterministic BIP32 node implementation, compatible with ed25519 EC-curve.

It is an implementation of BIP32 that is adapted to work with ED25519 ellyptic curve keys rather than secp256k1 keys.

This class uses features provided by the bitcoinjs/bip32 package and therefor is licensed under the BSD-2 Clause License as mentioned here.

see

https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

see

https://github.com/satoshilabs/slips/blob/master/slip-0010.md

see

https://github.com/bitcoinjs/bip32

see

https://github.com/nemtech/NIP/issues/12

since

0.2.0

Hierarchy

Implements

Index

Constructors

constructor

  • new NodeEd25519(__D: undefined | Buffer, __Q: undefined | Buffer, chainCode: Buffer, network: Network, __DEPTH?: number, __INDEX?: number, __PARENT_FINGERPRINT?: number): NodeEd25519

Properties

Readonly chainCode

chainCode: Buffer

Readonly network

network: Network

Static Readonly HIGHEST_BIT

HIGHEST_BIT: 2147483648 = 0x80000000

Hardened key derivation uses HIGHEST_BIT.

var

number

Accessors

Private depth

  • get depth(): number

fingerprint

  • get fingerprint(): Buffer
  • Getter for the fingerprint of the key.

    The fingerprint are the first 4 bytes of the identifier of the key.

    access

    public

    Returns Buffer

identifier

  • get identifier(): Buffer
  • Getter for the identifier of the key.

    The identifier is build as follows:

    • Step 1: Sha3-256 of the public key
    • Step 2: RIPEMD160 of the sha3 hash
    access

    public

    Returns Buffer

Private index

  • get index(): number
  • Getter for the index (account index) of the key.

    access

    private

    Returns number

Private parentFingerprint

  • get parentFingerprint(): number
  • Getter for the parentFingerprint parent fingerprint of the key.

    access

    private

    Returns number

privateKey

  • get privateKey(): Buffer

publicKey

  • get publicKey(): Buffer

Methods

derive

deriveHardened

derivePath

getD

  • getD(): undefined | Buffer

getDepth

  • getDepth(): number

getIndex

  • getIndex(): number

getParentFingerprint

  • getParentFingerprint(): number

getQ

  • getQ(): undefined | Buffer

isNeutered

  • isNeutered(): boolean

Protected isValidPath

  • isValidPath(path: string): boolean

neutered

sign

  • sign(hash: Buffer): Buffer

toBase58

  • toBase58(): string

toWIF

  • toWIF(): string

verify

  • verify(hash: Buffer, signature: Buffer): boolean

Static fromBase58

Static fromSeed

Generated using TypeDoc