Bip32Ed25519.importFromKey constructor

Bip32Ed25519.importFromKey(
  1. Bip32Key key
)

It creates a sub key tree from an imported BIP-ED25519 compatible private/signing or public/verifying key.

It can be used for creating read-, watch-only HD wallets.

The imported key becomes the root node of the sub tree. The root of the tree, usually, is NOT a BIP32-ED25519 master key, but a valid BIP-ED25519 compatible signing and verifying key.

Implementation

Bip32Ed25519.importFromKey(Bip32Key key) {
  root = key;
}