CryptoHDKey
The CryptoHDKey class represents hierarchical deterministic key information
This is an instruction provided by the OneKey hardware, which includes the extened public key information.
Parameters
isMaster:booleanWhether it is a master key.isPrivateKey:booleanWhether it is a private key.key:BufferThe key data.chainCode:BufferThe chain code.useInfo:CryptoCoinInfoUsage information.origin:CryptoKeypathThe origin path.children:CryptoKeypathThe children path.parentFingerprint:BufferThe parent fingerprint.name:stringThe name. optionalnote:Note(string)The note. optional'account.standard' : BIP44 Standard account
"account.ledger_live" : Ledger Live account
"account.ledger_legacy" : Ledger Legacy account
URL Example
UR:CRYPTO-HDKEY/PDAXHDCLAOZTRDKBTKFPRFKBCWVEWYBGDPNTCPVLEOENJSWMBKFTLTRESNWTNLTLMKJYVYMWBSAAHDCXCSBNNLLNBZIAJZTPKPPKJOSTCEZSJEKGYKJOCSKNHFTPSWTIGHVABDIEGTBWWLTEAHTAADEHOYADCSFNAMTAADDYOYADLNCSDWYKCSFNYKAEYKATTAADDYOYADLRAEWKLAWKAYAEASINFPIAIAJLKPJTJYCXEHBKKOGHISINJKCXINJKCXHSCDecoding flow (outline)
Aggregate QR frames into a UR object (e.g., using
@ngraveio/bc-ur'sURDecoder).Inspect
ur.type === 'crypto-hdkey'and parseCryptoHDKeyfrom CBOR bytes using the registry helper.Extract fields such as name, note, chainCode, bip32 xpub, origin/children paths, and source fingerprint (xfp).
Last updated
Was this helpful?