online_arbitrated_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 ArbitratedPool

该示例连接 WhatsOnChain BSV testnet,读取 Buyer 地址的 UTXO 和当前区块高度,然后构建 Buyer/Seller/Arbiter v3 的 2-of-3 funding、opening state、三份签名和三种两两合并结果。

需要设置:

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

锁定脚本顺序固定为 [Buyer, Seller, Arbiter],状态资金输出顺序为 [Buyer, Seller],Arbiter 不获得资金输出。示例不会自动广播交易,也不会打印私钥;请先为 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