Skip to Content
QR 署名基本 APICryptoKeypath
このページの内容

CryptoKeypath

この CryptoKeypath クラスは暗号鍵のパス (BIP-44 導出パス) を表します。

パラメーター

パラメーター型説明
componentsPathComponent[]パス構成要素の配列 (デフォルト: 空)
sourceFingerprintBufferソースのフィンガープリント (任意)
depthnumber深さ (任意)

PathComponent

この PathComponent クラスは鍵パスの個々の構成要素を表します。

パラメーター

パラメーター型説明
indexnumber構成要素のインデックス (任意)
hardenedbooleanハード化されているかどうか

例

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 }), ]);

UR タイプ

UR タイプは crypto-keypath。レジストリエンコーダーでエンコード済みペイロードを生成してください。

最終更新日