UNPKG

blockstack

Version:

The Blockstack Javascript library for authentication, identity, and storage.

902 lines 56.5 kB
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>BlockstackWallet | blockstack</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">blockstack</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="blockstackwallet.html">BlockstackWallet</a> </li> </ul> <h1>Class BlockstackWallet</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The BlockstackWallet class manages the hierarchical derivation paths for a standard blockstack client wallet. This includes paths for bitcoin payment address, blockstack identity addresses, blockstack application specific addresses. @private</p> </div> </div> </section> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="target">BlockstackWallet</span> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Constructors</h3> <ul class="tsd-index-list"> <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="blockstackwallet.html#constructor" class="tsd-kind-icon">constructor</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-class"><a href="blockstackwallet.html#rootnode" class="tsd-kind-icon">root<wbr>Node</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getbitcoinaddress" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Address</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getbitcoinnode" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Node</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getbitcoinprivatekey" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Key</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getbitcoinprivatekeychain" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Keychain</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getbitcoinpublickeychain" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Public<wbr>Keychain</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getidentityaddressnode" class="tsd-kind-icon">get<wbr>Identity<wbr>Address<wbr>Node</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getidentitykeypair" class="tsd-kind-icon">get<wbr>Identity<wbr>Key<wbr>Pair</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getidentityprivatekeychain" class="tsd-kind-icon">get<wbr>Identity<wbr>Private<wbr>Keychain</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getidentitypublickeychain" class="tsd-kind-icon">get<wbr>Identity<wbr>Public<wbr>Keychain</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#getidentitysalt" class="tsd-kind-icon">get<wbr>Identity<wbr>Salt</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="blockstackwallet.html#tobase58" class="tsd-kind-icon">to<wbr>Base58</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#encryptmnemonic" class="tsd-kind-icon">encrypt<wbr>Mnemonic</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#frombase58" class="tsd-kind-icon">from<wbr>Base58</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#fromencryptedmnemonic" class="tsd-kind-icon">from<wbr>Encrypted<wbr>Mnemonic</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#fromseedbuffer" class="tsd-kind-icon">from<wbr>Seed<wbr>Buffer</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#generatemnemonic" class="tsd-kind-icon">generate<wbr>Mnemonic</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getaddressfrombip32node" class="tsd-kind-icon">get<wbr>Address<wbr>FromBIP32<wbr>Node</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getaddressfrombitcoinkeychain" class="tsd-kind-icon">get<wbr>Address<wbr>From<wbr>Bitcoin<wbr>Keychain</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getappprivatekey" class="tsd-kind-icon">get<wbr>App<wbr>Private<wbr>Key</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getappsnode" class="tsd-kind-icon">get<wbr>Apps<wbr>Node</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getlegacyappprivatekey" class="tsd-kind-icon">get<wbr>Legacy<wbr>App<wbr>Private<wbr>Key</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="blockstackwallet.html#getnodefrombitcoinkeychain" class="tsd-kind-icon">get<wbr>Node<wbr>From<wbr>Bitcoin<wbr>Keychain</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Constructors</h2> <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"> <a name="constructor" class="tsd-anchor"></a> <h3>constructor</h3> <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">new <wbr>Blockstack<wbr>Wallet<span class="tsd-signature-symbol">(</span>rootNode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L55">wallet.ts:55</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>rootNode: <span class="tsd-signature-type">BIP32</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></h4> </li> </ul> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"> <a name="rootnode" class="tsd-anchor"></a> <h3>root<wbr>Node</h3> <div class="tsd-signature tsd-kind-icon">root<wbr>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BIP32</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L55">wallet.ts:55</a></li> </ul> </aside> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getbitcoinaddress" class="tsd-anchor"></a> <h3>get<wbr>Bitcoin<wbr>Address</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Bitcoin<wbr>Address<span class="tsd-signature-symbol">(</span>addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L171">wallet.ts:171</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get a bitcoin receive address at a given index</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> <div class="tsd-comment tsd-typography"> <p>the index of the address</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>address</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getbitcoinnode" class="tsd-anchor"></a> <h3>get<wbr>Bitcoin<wbr>Node</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Bitcoin<wbr>Node<span class="tsd-signature-symbol">(</span>addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, chainType<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L139">wallet.ts:139</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> chainType: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;EXTERNAL_ADDRESS</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getbitcoinprivatekey" class="tsd-anchor"></a> <h3>get<wbr>Bitcoin<wbr>Private<wbr>Key</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Key<span class="tsd-signature-symbol">(</span>addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L182">wallet.ts:182</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get the private key hex-string for a given bitcoin receive address</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> <div class="tsd-comment tsd-typography"> <p>the index of the address</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>the hex-string. this will be either 64 characters long to denote an uncompressed bitcoin address, or 66 characters long for a compressed bitcoin address.</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getbitcoinprivatekeychain" class="tsd-anchor"></a> <h3>get<wbr>Bitcoin<wbr>Private<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Keychain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L132">wallet.ts:132</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getbitcoinpublickeychain" class="tsd-anchor"></a> <h3>get<wbr>Bitcoin<wbr>Public<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Bitcoin<wbr>Public<wbr>Keychain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L190">wallet.ts:190</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get the root node for the bitcoin public keychain</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> <p>base58-encoding of the public node</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getidentityaddressnode" class="tsd-anchor"></a> <h3>get<wbr>Identity<wbr>Address<wbr>Node</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Identity<wbr>Address<wbr>Node<span class="tsd-signature-symbol">(</span>identityIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L147">wallet.ts:147</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>identityIndex: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getidentitykeypair" class="tsd-anchor"></a> <h3>get<wbr>Identity<wbr>Key<wbr>Pair</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Identity<wbr>Key<wbr>Pair<span class="tsd-signature-symbol">(</span>addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, alwaysUncompressed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../globals.html#identitykeypair" class="tsd-signature-type">IdentityKeyPair</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L311">wallet.ts:311</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get the keypair information for a given identity index. This information is used to obtain the private key for an identity address and derive application specific keys for that address.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> <div class="tsd-comment tsd-typography"> <p>the identity index</p> </div> </li> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> alwaysUncompressed: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;false</span></h5> <div class="tsd-comment tsd-typography"> <p>if true, always return a private-key hex string corresponding to the uncompressed address</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="../globals.html#identitykeypair" class="tsd-signature-type">IdentityKeyPair</a></h4> <p>an IdentityKeyPair type object with keys: .key {String} - the private key hex-string .keyID {String} - the public key hex-string .address {String} - the identity address .appsNodeKey {String} - the base-58 encoding of the applications node .salt {String} - the salt used for creating app-specific addresses</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getidentityprivatekeychain" class="tsd-anchor"></a> <h3>get<wbr>Identity<wbr>Private<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Identity<wbr>Private<wbr>Keychain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L126">wallet.ts:126</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getidentitypublickeychain" class="tsd-anchor"></a> <h3>get<wbr>Identity<wbr>Public<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Identity<wbr>Public<wbr>Keychain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L198">wallet.ts:198</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get the root node for the identity public keychain</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> <p>base58-encoding of the public node</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getidentitysalt" class="tsd-anchor"></a> <h3>get<wbr>Identity<wbr>Salt</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Identity<wbr>Salt<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L160">wallet.ts:160</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get a salt for use with creating application specific addresses</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>the salt</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="tobase58" class="tsd-anchor"></a> <h3>to<wbr>Base58</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">to<wbr>Base58<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L61">wallet.ts:61</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="encryptmnemonic" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> encrypt<wbr>Mnemonic</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">encrypt<wbr>Mnemonic<span class="tsd-signature-symbol">(</span>mnemonic<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L121">wallet.ts:121</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Encrypt a mnemonic phrase with a password</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>mnemonic: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>Raw mnemonic phrase</p> </div> </li> <li> <h5>password: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>Password to encrypt mnemonic with</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4> <p>Hex-encoded encrypted mnemonic</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="frombase58" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Base58</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">from<wbr>Base58<span class="tsd-signature-symbol">(</span>keychain<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L81">wallet.ts:81</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Initialize a blockstack wallet from a base58 string</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>keychain: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>the Base58 string used to initialize the root node of the hierarchical wallet</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></h4> <p>the constructed wallet</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="fromencryptedmnemonic" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Encrypted<wbr>Mnemonic</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">from<wbr>Encrypted<wbr>Mnemonic<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, password<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L92">wallet.ts:92</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Initialize a blockstack wallet from an encrypted phrase &amp; password. Throws if the password is incorrect. Supports all formats of Blockstack phrases.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>data: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>The encrypted phrase as a hex-encoded string</p> </div> </li> <li> <h5>password: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>The plain password</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a><span class="tsd-signature-symbol">&gt;</span></h4> <p>the constructed wallet</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="fromseedbuffer" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Seed<wbr>Buffer</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">from<wbr>Seed<wbr>Buffer<span class="tsd-signature-symbol">(</span>seed<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L71">wallet.ts:71</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Initialize a blockstack wallet from a seed buffer</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>seed: <span class="tsd-signature-type">Buffer</span></h5> <div class="tsd-comment tsd-typography"> <p>the input seed for initializing the root node of the hierarchical wallet</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="blockstackwallet.html" class="tsd-signature-type">BlockstackWallet</a></h4> <p>the constructed wallet</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="generatemnemonic" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> generate<wbr>Mnemonic</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">generate<wbr>Mnemonic<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L111">wallet.ts:111</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Generate a BIP-39 12 word mnemonic</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>space-separated 12 word phrase</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getaddressfrombip32node" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Address<wbr>FromBIP32<wbr>Node</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>Address<wbr>FromBIP32<wbr>Node<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L256">wallet.ts:256</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>node: <span class="tsd-signature-type">BIP32</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getaddressfrombitcoinkeychain" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Address<wbr>From<wbr>Bitcoin<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>Address<wbr>From<wbr>Bitcoin<wbr>Keychain<span class="tsd-signature-symbol">(</span>keychainBase58<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, chainType<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L229">wallet.ts:229</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get a bitcoin address given a base-58 encoded bitcoin node (usually called the account node)</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>keychainBase58: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>base58-encoding of the node</p> </div> </li> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> <div class="tsd-comment tsd-typography"> <p>index of the address to get</p> </div> </li> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> chainType: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;EXTERNAL_ADDRESS</span></h5> <div class="tsd-comment tsd-typography"> <p>either &#39;EXTERNAL_ADDRESS&#39; (for a &quot;receive&quot; address) or &#39;CHANGE_ADDRESS&#39;</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>the address</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getappprivatekey" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>App<wbr>Private<wbr>Key</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>App<wbr>Private<wbr>Key<span class="tsd-signature-symbol">(</span>appsNodeKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, salt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, appDomain<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L271">wallet.ts:271</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get a ECDSA private key hex-string for an application-specific address.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>appsNodeKey: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>the base58-encoded private key for applications node (the <code>appsNodeKey</code> return in getIdentityKeyPair())</p> </div> </li> <li> <h5>salt: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>a string, used to salt the application-specific addresses</p> </div> </li> <li> <h5>appDomain: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>the appDomain to generate a key for</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>the private key hex-string. this will be a 64 character string</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getappsnode" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Apps<wbr>Node</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>Apps<wbr>Node<span class="tsd-signature-symbol">(</span>identityNode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L152">wallet.ts:152</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>identityNode: <span class="tsd-signature-type">BIP32</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getlegacyappprivatekey" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Legacy<wbr>App<wbr>Private<wbr>Key</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>Legacy<wbr>App<wbr>Private<wbr>Key<span class="tsd-signature-symbol">(</span>appsNodeKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, salt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, appDomain<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L246">wallet.ts:246</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Get a ECDSA private key hex-string for an application-specific address.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>appsNodeKey: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>the base58-encoded private key for applications node (the <code>appsNodeKey</code> return in getIdentityKeyPair())</p> </div> </li> <li> <h5>salt: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>a string, used to salt the application-specific addresses</p> </div> </li> <li> <h5>appDomain: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"> <p>the appDomain to generate a key for</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4> <p>the private key hex-string. this will be a 64 character string</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a name="getnodefrombitcoinkeychain" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Node<wbr>From<wbr>Bitcoin<wbr>Keychain</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"> <li class="tsd-signature tsd-kind-icon">get<wbr>Node<wbr>From<wbr>Bitcoin<wbr>Keychain<span class="tsd-signature-symbol">(</span>keychainBase58<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, addressIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, chainType<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/blockstack/blockstack.js/blob/master/src/wallet.ts#L202">wallet.ts:202</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>keychainBase58: <span class="tsd-signature-type">string</span></h5> </li> <li> <h5>addressIndex: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> chainType: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;EXTERNAL_ADDRESS</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32</span></h4> </li> </ul> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-class"> <a href="blockstackwallet.html" class="tsd-kind-icon">Blockstack<wbr>Wallet</a> <ul> <li class=" tsd-kind-constructor tsd-parent-kind-class"> <a href="blockstackwallet.html#constructor" class="tsd-kind-icon">constructor</a> </li> <li class=" tsd-kind-property tsd-parent-kind-class"> <a href="blockstackwallet.html#rootnode" class="tsd-kind-icon">root<wbr>Node</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getbitcoinaddress" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Address</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getbitcoinnode" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Node</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getbitcoinprivatekey" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Key</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getbitcoinprivatekeychain" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Private<wbr>Keychain</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getbitcoinpublickeychain" class="tsd-kind-icon">get<wbr>Bitcoin<wbr>Public<wbr>Keychain</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getidentityaddressnode" class="tsd-kind-icon">get<wbr>Identity<wbr>Address<wbr>Node</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getidentitykeypair" class="tsd-kind-icon">get<wbr>Identity<wbr>Key<wbr>Pair</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getidentityprivatekeychain" class="tsd-kind-icon">get<wbr>Identity<wbr>Private<wbr>Keychain</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getidentitypublickeychain" class="tsd-kind-icon">get<wbr>Identity<wbr>Public<wbr>Keychain</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#getidentitysalt" class="tsd-kind-icon">get<wbr>Identity<wbr>Salt</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class"> <a href="blockstackwallet.html#tobase58" class="tsd-kind-icon">to<wbr>Base58</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a href="blockstackwallet.html#encryptmnemonic" class="tsd-kind-icon">encrypt<wbr>Mnemonic</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a href="blockstackwallet.html#frombase58" class="tsd-kind-icon">from<wbr>Base58</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static"> <a href="blockstackwallet.html#fromencryptedmnemonic" class="tsd-kind-icon">from<wbr>Encrypted<wbr>Mnemonic</a> </li> <li class=" tsd-kind-method tsd-parent-kind-class tsd-