online_two_party_pool

command
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

README

Online TwoPartyPool

该示例连接 WhatsOnChain BSV testnet,读取 Buyer 地址的 UTXO 和当前区块高度,然后构建 Buyer/Seller v3 的 2-of-2 funding、opening state、签名和最终交易。

需要设置:

export FEEPOOL_BUYER_PRIV=<Buyer 的 testnet 私钥十六进制>
export FEEPOOL_SELLER_PRIV=<Seller 的私钥十六进制>
go run ./examples/online_two_party_pool

锁定脚本顺序为 [Buyer, Seller],状态资金输出顺序为 [Buyer, Seller]。示例不会自动广播交易,也不会打印私钥;请先为 Buyer 地址准备超过 500 satoshis 的 testnet UTXO。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL