@btc-vision/transaction 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +4 -2
  2. package/browser/_version.d.ts +1 -1
  3. package/browser/index.js +1 -1
  4. package/build/_version.d.ts +1 -1
  5. package/build/_version.js +1 -1
  6. package/build/utils/BitcoinUtils.js +3 -3
  7. package/docs/classes/AddressGenerator.html +2 -2
  8. package/docs/classes/BitcoinUtils.html +4 -4
  9. package/docs/classes/CalldataGenerator.html +10 -10
  10. package/docs/classes/Compressor.html +4 -4
  11. package/docs/classes/ContractBaseMetadata.html +4 -4
  12. package/docs/classes/DeploymentGenerator.html +9 -9
  13. package/docs/classes/DeploymentTransaction.html +73 -73
  14. package/docs/classes/EcKeyPair.html +16 -16
  15. package/docs/classes/FundingTransaction.html +48 -48
  16. package/docs/classes/Generator.html +9 -9
  17. package/docs/classes/InteractionTransaction.html +63 -63
  18. package/docs/classes/OPNetLimitedProvider.html +4 -4
  19. package/docs/classes/SharedInteractionTransaction.html +69 -69
  20. package/docs/classes/TapscriptVerificator.html +2 -2
  21. package/docs/classes/TransactionBuilder.html +51 -51
  22. package/docs/classes/TransactionFactory.html +3 -3
  23. package/docs/classes/TweakedSigner.html +2 -2
  24. package/docs/classes/Wallet.html +10 -10
  25. package/docs/classes/WrapTransaction.html +75 -75
  26. package/docs/classes/WrappedGeneration.html +8 -8
  27. package/docs/classes/wBTC.html +7 -7
  28. package/docs/enums/TransactionSequence.html +2 -2
  29. package/docs/enums/TransactionType.html +2 -2
  30. package/docs/index.html +4 -2
  31. package/docs/interfaces/ContractAddressVerificationParams.html +2 -2
  32. package/docs/interfaces/DeploymentResult.html +2 -2
  33. package/docs/interfaces/FetchUTXOParams.html +2 -2
  34. package/docs/interfaces/GenerationConstraints.html +5 -5
  35. package/docs/interfaces/IDeploymentParameters.html +2 -2
  36. package/docs/interfaces/IFundingTransactionParameters.html +2 -2
  37. package/docs/interfaces/IInteractionParameters.html +2 -2
  38. package/docs/interfaces/ITransactionParameters.html +2 -2
  39. package/docs/interfaces/IWallet.html +4 -4
  40. package/docs/interfaces/IWrapParameters.html +2 -2
  41. package/docs/interfaces/NetworkInformation.html +2 -2
  42. package/docs/interfaces/PsbtInputExtended.html +1 -1
  43. package/docs/interfaces/PsbtOutputExtendedAddress.html +2 -2
  44. package/docs/interfaces/PsbtOutputExtendedScript.html +2 -2
  45. package/docs/interfaces/RawUTXOResponse.html +2 -2
  46. package/docs/interfaces/SharedInteractionParameters.html +2 -2
  47. package/docs/interfaces/TapLeafScript.html +2 -2
  48. package/docs/interfaces/TweakSettings.html +3 -3
  49. package/docs/interfaces/UTXO.html +2 -2
  50. package/docs/interfaces/UpdateInput.html +2 -2
  51. package/docs/interfaces/WrapResult.html +2 -2
  52. package/docs/interfaces/WrappedGenerationParameters.html +6 -6
  53. package/docs/types/PsbtOutputExtended.html +1 -1
  54. package/docs/variables/version.html +1 -1
  55. package/package.json +1 -1
  56. package/src/_version.ts +1 -1
  57. package/src/utils/BitcoinUtils.ts +3 -3
@@ -156,7 +156,7 @@
156
156
  --md-sys-color-surface-container-high: #efe7de;
157
157
  --md-sys-color-surface-container-highest: #e9e1d9
158
158
  }
159
- </style><link rel="stylesheet" href="../assets/material-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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">OPNet</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">OPNet</a></li><li><a href="EcKeyPair.html">EcKeyPair</a></li></ul><h1>Class EcKeyPair</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L20">src/keypair/EcKeyPair.ts:20</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="EcKeyPair.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
159
+ </style><link rel="stylesheet" href="../assets/material-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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">OPNet</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">OPNet</a></li><li><a href="EcKeyPair.html">EcKeyPair</a></li></ul><h1>Class EcKeyPair</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L20">src/keypair/EcKeyPair.ts:20</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="EcKeyPair.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
160
160
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="EcKeyPair.html#BIP32" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>BIP32</span></a>
161
161
  <a href="EcKeyPair.html#ECPair" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ECPair</span></a>
162
162
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="EcKeyPair.html#fromPrivateKey" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Private<wbr/>Key</span></a>
@@ -173,37 +173,37 @@
173
173
  <a href="EcKeyPair.html#getTaprootAddressFromAddress" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span></a>
174
174
  <a href="EcKeyPair.html#verifyContractAddress" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Contract<wbr/>Address</span></a>
175
175
  <a href="EcKeyPair.html#verifyPubKeys" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Pub<wbr/>Keys</span></a>
176
- </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_EcKeyPair" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Ec<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="EcKeyPair.html" class="tsd-signature-type tsd-kind-class">EcKeyPair</a><a href="#constructor.new_EcKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="EcKeyPair.html" class="tsd-signature-type tsd-kind-class">EcKeyPair</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member"><a id="BIP32" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>BIP32</span><a href="#BIP32" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">BIP32</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L22">src/keypair/EcKeyPair.ts:22</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="ECPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>ECPair</span><a href="#ECPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ECPair</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ECPairAPI</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L23">src/keypair/EcKeyPair.ts:23</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="fromPrivateKey" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Private<wbr/>Key</span><a href="#fromPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromPrivateKey.fromPrivateKey-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Private<wbr/>Key</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">privateKey</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromPrivateKey.fromPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a private key</p>
176
+ </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_EcKeyPair" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Ec<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="EcKeyPair.html" class="tsd-signature-type tsd-kind-class">EcKeyPair</a><a href="#constructor.new_EcKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="EcKeyPair.html" class="tsd-signature-type tsd-kind-class">EcKeyPair</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member"><a id="BIP32" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>BIP32</span><a href="#BIP32" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">BIP32</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L22">src/keypair/EcKeyPair.ts:22</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="ECPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>ECPair</span><a href="#ECPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ECPair</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ECPairAPI</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L23">src/keypair/EcKeyPair.ts:23</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="fromPrivateKey" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Private<wbr/>Key</span><a href="#fromPrivateKey" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromPrivateKey.fromPrivateKey-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Private<wbr/>Key</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">privateKey</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromPrivateKey.fromPrivateKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a private key</p>
177
177
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">privateKey</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The private key to use</p>
178
178
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
179
179
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ECPairInterface</span></h4><ul>
180
180
  <li>The generated keypair</li>
181
181
  </ul>
182
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L41">src/keypair/EcKeyPair.ts:41</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromPublicKey" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Public<wbr/>Key</span><a href="#fromPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromPublicKey.fromPublicKey-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Public<wbr/>Key</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">publicKey</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromPublicKey.fromPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a public key</p>
182
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L41">src/keypair/EcKeyPair.ts:41</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromPublicKey" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Public<wbr/>Key</span><a href="#fromPublicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromPublicKey.fromPublicKey-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Public<wbr/>Key</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">publicKey</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromPublicKey.fromPublicKey-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a public key</p>
183
183
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">publicKey</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The public key to use</p>
184
184
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
185
185
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ECPairInterface</span></h4><ul>
186
186
  <li>The generated keypair</li>
187
187
  </ul>
188
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L54">src/keypair/EcKeyPair.ts:54</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromSeed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Seed</span><a href="#fromSeed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromSeed.fromSeed-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Seed</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">seed</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32Interface</span><a href="#fromSeed.fromSeed-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a BIP32 keypair from a seed</p>
188
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L54">src/keypair/EcKeyPair.ts:54</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromSeed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Seed</span><a href="#fromSeed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromSeed.fromSeed-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Seed</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">seed</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BIP32Interface</span><a href="#fromSeed.fromSeed-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a BIP32 keypair from a seed</p>
189
189
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">seed</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The seed to generate the keypair from</p>
190
190
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
191
191
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BIP32Interface</span></h4><ul>
192
192
  <li>The generated keypair</li>
193
193
  </ul>
194
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L201">src/keypair/EcKeyPair.ts:201</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromSeedKeyPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Seed<wbr/>Key<wbr/>Pair</span><a href="#fromSeedKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromSeedKeyPair.fromSeedKeyPair-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Seed<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">seed</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromSeedKeyPair.fromSeedKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a keypair from a given seed.</p>
194
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L201">src/keypair/EcKeyPair.ts:201</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromSeedKeyPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>from<wbr/>Seed<wbr/>Key<wbr/>Pair</span><a href="#fromSeedKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromSeedKeyPair.fromSeedKeyPair-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">from<wbr/>Seed<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">seed</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromSeedKeyPair.fromSeedKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a keypair from a given seed.</p>
195
195
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">seed</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The seed to generate the key pair from</p>
196
196
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
197
197
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ECPairInterface</span></h4><ul>
198
198
  <li>The generated key pair</li>
199
199
  </ul>
200
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L255">src/keypair/EcKeyPair.ts:255</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromWIF" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>fromWIF</span><a href="#fromWIF" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromWIF.fromWIF-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fromWIF</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">wif</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromWIF.fromWIF-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a WIF</p>
200
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L255">src/keypair/EcKeyPair.ts:255</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fromWIF" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>fromWIF</span><a href="#fromWIF" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fromWIF.fromWIF-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fromWIF</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">wif</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#fromWIF.fromWIF-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a keypair from a WIF</p>
201
201
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">wif</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The WIF to use</p>
202
202
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
203
203
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ECPairInterface</span></h4><ul>
204
204
  <li>The generated keypair</li>
205
205
  </ul>
206
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L31">src/keypair/EcKeyPair.ts:31</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateMultiSigAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span><a href="#generateMultiSigAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateMultiSigAddress.generateMultiSigAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pubKeys</span>, <span class="tsd-kind-parameter">minimumSignatureRequired</span>, <span class="tsd-kind-parameter">network</span><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><a href="#generateMultiSigAddress.generateMultiSigAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a multi-sig address</p>
206
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L31">src/keypair/EcKeyPair.ts:31</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateMultiSigAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span><a href="#generateMultiSigAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateMultiSigAddress.generateMultiSigAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pubKeys</span>, <span class="tsd-kind-parameter">minimumSignatureRequired</span>, <span class="tsd-kind-parameter">network</span><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><a href="#generateMultiSigAddress.generateMultiSigAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a multi-sig address</p>
207
207
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pubKeys</span>: <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The public keys to use</p>
208
208
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">minimumSignatureRequired</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The minimum number of signatures required</p>
209
209
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
@@ -213,47 +213,47 @@
213
213
  <div class="tsd-comment tsd-typography"><h4>Throws</h4><ul>
214
214
  <li>If the address cannot be generated</li>
215
215
  </ul>
216
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L69">src/keypair/EcKeyPair.ts:69</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateRandomKeyPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Random<wbr/>Key<wbr/>Pair</span><a href="#generateRandomKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateRandomKeyPair.generateRandomKeyPair-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Random<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#generateRandomKeyPair.generateRandomKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a random keypair</p>
216
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L69">src/keypair/EcKeyPair.ts:69</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateRandomKeyPair" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Random<wbr/>Key<wbr/>Pair</span><a href="#generateRandomKeyPair" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateRandomKeyPair.generateRandomKeyPair-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Random<wbr/>Key<wbr/>Pair</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ECPairInterface</span><a href="#generateRandomKeyPair.generateRandomKeyPair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a random keypair</p>
217
217
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
218
218
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ECPairInterface</span></h4><ul>
219
219
  <li>The generated keypair</li>
220
220
  </ul>
221
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L189">src/keypair/EcKeyPair.ts:189</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateWallet" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Wallet</span><a href="#generateWallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateWallet.generateWallet-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Wallet</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/IWallet.html" class="tsd-signature-type tsd-kind-interface">IWallet</a><a href="#generateWallet.generateWallet-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a random wallet</p>
221
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L189">src/keypair/EcKeyPair.ts:189</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="generateWallet" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>generate<wbr/>Wallet</span><a href="#generateWallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="generateWallet.generateWallet-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">generate<wbr/>Wallet</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/IWallet.html" class="tsd-signature-type tsd-kind-interface">IWallet</a><a href="#generateWallet.generateWallet-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate a random wallet</p>
222
222
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
223
223
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/IWallet.html" class="tsd-signature-type tsd-kind-interface">IWallet</a></h4><ul>
224
224
  <li>The generated wallet</li>
225
225
  </ul>
226
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L134">src/keypair/EcKeyPair.ts:134</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getLegacyAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Legacy<wbr/>Address</span><a href="#getLegacyAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getLegacyAddress.getLegacyAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Legacy<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getLegacyAddress.getLegacyAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the legacy address from a keypair</p>
226
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L134">src/keypair/EcKeyPair.ts:134</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getLegacyAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Legacy<wbr/>Address</span><a href="#getLegacyAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getLegacyAddress.getLegacyAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Legacy<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getLegacyAddress.getLegacyAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the legacy address from a keypair</p>
227
227
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">keyPair</span>: <span class="tsd-signature-type">ECPairInterface</span></span><div class="tsd-comment tsd-typography"><p>The keypair to get the address for</p>
228
228
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
229
229
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><ul>
230
230
  <li>The legacy address</li>
231
231
  </ul>
232
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L171">src/keypair/EcKeyPair.ts:171</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getP2WPKHAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>P2WPKHAddress</span><a href="#getP2WPKHAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getP2WPKHAddress.getP2WPKHAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>P2WPKHAddress</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getP2WPKHAddress.getP2WPKHAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a P2WPKH address from a keypair</p>
232
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L171">src/keypair/EcKeyPair.ts:171</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getP2WPKHAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>P2WPKHAddress</span><a href="#getP2WPKHAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getP2WPKHAddress.getP2WPKHAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>P2WPKHAddress</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getP2WPKHAddress.getP2WPKHAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a P2WPKH address from a keypair</p>
233
233
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">keyPair</span>: <span class="tsd-signature-type">ECPairInterface</span></span><div class="tsd-comment tsd-typography"><p>The keypair to get the address for</p>
234
234
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
235
235
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><ul>
236
236
  <li>The address</li>
237
237
  </ul>
238
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L116">src/keypair/EcKeyPair.ts:116</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getTaprootAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Taproot<wbr/>Address</span><a href="#getTaprootAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getTaprootAddress.getTaprootAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Taproot<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getTaprootAddress.getTaprootAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get taproot address from keypair</p>
238
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L116">src/keypair/EcKeyPair.ts:116</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getTaprootAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Taproot<wbr/>Address</span><a href="#getTaprootAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getTaprootAddress.getTaprootAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Taproot<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">keyPair</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getTaprootAddress.getTaprootAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get taproot address from keypair</p>
239
239
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">keyPair</span>: <span class="tsd-signature-type">ECPairInterface</span></span><div class="tsd-comment tsd-typography"><p>The keypair to get the taproot address for</p>
240
240
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
241
241
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><ul>
242
242
  <li>The taproot address</li>
243
243
  </ul>
244
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L211">src/keypair/EcKeyPair.ts:211</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getTaprootAddressFromAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span><a href="#getTaprootAddressFromAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getTaprootAddressFromAddress.getTaprootAddressFromAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">inAddr</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getTaprootAddressFromAddress.getTaprootAddressFromAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get taproot address from address</p>
244
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L211">src/keypair/EcKeyPair.ts:211</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getTaprootAddressFromAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span><a href="#getTaprootAddressFromAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getTaprootAddressFromAddress.getTaprootAddressFromAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">inAddr</span>, <span class="tsd-kind-parameter">network</span><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><a href="#getTaprootAddressFromAddress.getTaprootAddressFromAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get taproot address from address</p>
245
245
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">inAddr</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The address to convert to taproot</p>
246
246
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
247
247
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><ul>
248
248
  <li>The taproot address</li>
249
249
  </ul>
250
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L233">src/keypair/EcKeyPair.ts:233</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="verifyContractAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>verify<wbr/>Contract<wbr/>Address</span><a href="#verifyContractAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="verifyContractAddress.verifyContractAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">verify<wbr/>Contract<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contractAddress</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#verifyContractAddress.verifyContractAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Verify that a contract address is a valid p2tr address</p>
250
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L233">src/keypair/EcKeyPair.ts:233</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="verifyContractAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>verify<wbr/>Contract<wbr/>Address</span><a href="#verifyContractAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="verifyContractAddress.verifyContractAddress-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">verify<wbr/>Contract<wbr/>Address</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contractAddress</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#verifyContractAddress.verifyContractAddress-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Verify that a contract address is a valid p2tr address</p>
251
251
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">contractAddress</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The contract address to verify</p>
252
252
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
253
253
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><ul>
254
254
  <li>Whether the address is valid</li>
255
255
  </ul>
256
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L158">src/keypair/EcKeyPair.ts:158</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="verifyPubKeys" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>verify<wbr/>Pub<wbr/>Keys</span><a href="#verifyPubKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="verifyPubKeys.verifyPubKeys-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">verify<wbr/>Pub<wbr/>Keys</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pubKeys</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span><a href="#verifyPubKeys.verifyPubKeys-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Verify public keys and return the public keys</p>
256
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L158">src/keypair/EcKeyPair.ts:158</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="verifyPubKeys" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>verify<wbr/>Pub<wbr/>Keys</span><a href="#verifyPubKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="verifyPubKeys.verifyPubKeys-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">verify<wbr/>Pub<wbr/>Keys</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pubKeys</span>, <span class="tsd-kind-parameter">network</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span><a href="#verifyPubKeys.verifyPubKeys-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Verify public keys and return the public keys</p>
257
257
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pubKeys</span>: <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The public keys to verify</p>
258
258
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">network</span>: <span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol"> = networks.bitcoin</span></span><div class="tsd-comment tsd-typography"><p>The network to use</p>
259
259
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">[]</span></h4><ul>
@@ -262,7 +262,7 @@
262
262
  <div class="tsd-comment tsd-typography"><h4>Throws</h4><ul>
263
263
  <li>If the key cannot be regenerated</li>
264
264
  </ul>
265
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/c640351fa3d0b647a1a13b584d73e1066b91ed5c/src/keypair/EcKeyPair.ts#L98">src/keypair/EcKeyPair.ts:98</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a><a href="#BIP32" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>BIP32</span></a><a href="#ECPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ECPair</span></a><a href="#fromPrivateKey" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Private<wbr/>Key</span></a><a href="#fromPublicKey" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Public<wbr/>Key</span></a><a href="#fromSeed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Seed</span></a><a href="#fromSeedKeyPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Seed<wbr/>Key<wbr/>Pair</span></a><a href="#fromWIF" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fromWIF</span></a><a href="#generateMultiSigAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span></a><a href="#generateRandomKeyPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Random<wbr/>Key<wbr/>Pair</span></a><a href="#generateWallet" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Wallet</span></a><a href="#getLegacyAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Legacy<wbr/>Address</span></a><a href="#getP2WPKHAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>P2WPKHAddress</span></a><a href="#getTaprootAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Taproot<wbr/>Address</span></a><a href="#getTaprootAddressFromAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span></a><a href="#verifyContractAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Contract<wbr/>Address</span></a><a href="#verifyPubKeys" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Pub<wbr/>Keys</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>OPNet</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div><script>
265
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/0218db40fec642fdc75d31f5fce3ea59c2ffd724/src/keypair/EcKeyPair.ts#L98">src/keypair/EcKeyPair.ts:98</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a><a href="#BIP32" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>BIP32</span></a><a href="#ECPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ECPair</span></a><a href="#fromPrivateKey" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Private<wbr/>Key</span></a><a href="#fromPublicKey" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Public<wbr/>Key</span></a><a href="#fromSeed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Seed</span></a><a href="#fromSeedKeyPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>from<wbr/>Seed<wbr/>Key<wbr/>Pair</span></a><a href="#fromWIF" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fromWIF</span></a><a href="#generateMultiSigAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Multi<wbr/>Sig<wbr/>Address</span></a><a href="#generateRandomKeyPair" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Random<wbr/>Key<wbr/>Pair</span></a><a href="#generateWallet" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Wallet</span></a><a href="#getLegacyAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Legacy<wbr/>Address</span></a><a href="#getP2WPKHAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>P2WPKHAddress</span></a><a href="#getTaprootAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Taproot<wbr/>Address</span></a><a href="#getTaprootAddressFromAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Taproot<wbr/>Address<wbr/>From<wbr/>Address</span></a><a href="#verifyContractAddress" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Contract<wbr/>Address</span></a><a href="#verifyPubKeys" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>verify<wbr/>Pub<wbr/>Keys</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>OPNet</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div><script>
266
266
  try {
267
267
  const generateLinkElement = document.querySelector(".tsd-generator a");
268
268
  const link = document.createElement("a");