MCPcopy Create free account
hub / github.com/bitpay/bitcore / getXPrivKey

Method getXPrivKey

packages/bitcore-cli/src/wallet.ts:665–668  ·  view source on GitHub ↗
(password?: string)

Source from the content-addressed store, hash-verified

663 }
664
665 async getXPrivKey(password?: string): Promise<string> {
666 password = password || await getPassword();
667 return this.#walletData.key.get(password).xPrivKey;
668 }
669
670 getXPubKey() {
671 return this.client.credentials.clientDerivedPublicKey || this.client.credentials.xPubKey;

Callers

nothing calls this directly

Calls 2

getPasswordFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected