(data: Buffer)
| 265 | } |
| 266 | |
| 267 | private commitPayloadAddress(data: Buffer) { |
| 268 | const address = generateP2TRCommitDataAddress( |
| 269 | data, |
| 270 | Buffer.from(this.currentAccount.publicKey, "hex"), |
| 271 | bitcoin.networks[ |
| 272 | this.config.network === "livenet" ? "bitcoin" : "testnet" |
| 273 | ] |
| 274 | ); |
| 275 | return address; |
| 276 | } |
| 277 | |
| 278 | async buildEmptyTokenUTXO(): Promise<IUtxo> { |
| 279 | const commitAddress = this.currentAccount.tokenAddress!; |
no test coverage detected