Skip to Content
Sur cette page

CryptoKeypath

La classe CryptoKeypath représente un chemin de clé cryptographique (chemin de dérivation BIP-44).

Paramètres

ParamètreTypeDescription
componentsPathComponent[]Tableau de composants du chemin (par défaut : vide)
sourceFingerprintBufferL’empreinte source (facultative)
depthnumberLa profondeur (facultative)

PathComponent

La classe PathComponent représente un composant individuel d’un chemin de clé.

Paramètres

ParamètreTypeDescription
indexnumberL’indice du composant (facultatif)
hardenedbooleanIndique si la dérivation est renforcée

Exemple

import { CryptoKeypath, PathComponent } from '@keystonehq/bc-ur-registry'; // BIP44: m/44'/60'/0'/0/0 const keypath = new CryptoKeypath([ new PathComponent({ index: 44, hardened: true }), new PathComponent({ index: 60, hardened: true }), new PathComponent({ index: 0, hardened: true }), new PathComponent({ index: 0, hardened: false }), new PathComponent({ index: 0, hardened: false }), ]);

Type UR

Le type UR est crypto-keypath. Générez les données encodées avec l’encodeur du registre.

Dernière mise à jour le