Versions in this module Expand all Collapse all v4 v4.0.0 Aug 1, 2026 Changes in this version + const Protocol + const ProtocolVersion + const ReleaseVersion + const Version + var ErrInvalidPublicKeys = libs.ErrInvalidPublicKeys + func BuildArbitratedPoolFinalState(input ArbitratedPoolStateInput) (*tx.Transaction, error) + func BuildArbitratedPoolLock(roles ArbitratedPoolRoles) (*script.Script, error) + func BuildArbitratedPoolOpeningState(fundingTxID []byte, poolOutputIndex uint32, poolAmount uint64, ...) (*tx.Transaction, error) + func BuildArbitratedPoolState(input ArbitratedPoolStateInput) (*tx.Transaction, error) + func BuildTwoPartyPoolLock(roles TwoPartyPoolRoles) (*script.Script, error) + func BuildTwoPartyPoolOpeningState(fundingTxID []byte, poolOutputIndex uint32, poolAmount uint64, ...) (*tx.Transaction, error) + func BuildTwoPartyPoolState(input TwoPartyPoolStateInput) (*tx.Transaction, error) + func GetAddressFromPublicKey(pubKey *ec.PublicKey, isMain bool) (*script.Address, error) + func Lock(pubKeys []*ec.PublicKey, m int) (*script.Script, error) + func MergeArbitratedPoolBuyerArbiterSignatures(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (*tx.Transaction, error) + func MergeArbitratedPoolBuyerSellerSignatures(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (*tx.Transaction, error) + func MergeArbitratedPoolSellerArbiterSignatures(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (*tx.Transaction, error) + func MergeTwoPartyPoolBuyerSellerSignatures(state *tx.Transaction, poolAmount uint64, roles TwoPartyPoolRoles, ...) (*tx.Transaction, error) + func SignArbitratedPoolAsArbiter(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) ([]byte, error) + func SignArbitratedPoolAsBuyer(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) ([]byte, error) + func SignArbitratedPoolAsSeller(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) ([]byte, error) + func SignTwoPartyPoolAsBuyer(state *tx.Transaction, poolAmount uint64, roles TwoPartyPoolRoles, ...) ([]byte, error) + func SignTwoPartyPoolAsSeller(state *tx.Transaction, poolAmount uint64, roles TwoPartyPoolRoles, ...) ([]byte, error) + func VerifyArbitratedPoolArbiterSignature(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (bool, error) + func VerifyArbitratedPoolBuyerSignature(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (bool, error) + func VerifyArbitratedPoolSellerSignature(state *tx.Transaction, poolAmount uint64, roles ArbitratedPoolRoles, ...) (bool, error) + func VerifyTwoPartyPoolBuyerSignature(state *tx.Transaction, poolAmount uint64, roles TwoPartyPoolRoles, ...) (bool, error) + func VerifyTwoPartyPoolSellerSignature(state *tx.Transaction, poolAmount uint64, roles TwoPartyPoolRoles, ...) (bool, error) + type ArbitratedPoolFundingResult = arbitrated.FundingTxResult + func BuildArbitratedPoolFundingTx(utxos []UTXO, poolAmount uint64, buyerPrivateKey *ec.PrivateKey, ...) (*ArbitratedPoolFundingResult, error) + type ArbitratedPoolRoles = arbitrated.ArbitratedPoolRoles + type ArbitratedPoolStateInput = arbitrated.StateInput + type FeeSatPerKB = arbitrated.FeeSatPerKB + type MultiSig = libs.MultiSig + func Unlock(privKeys []*ec.PrivateKey, pubKeys []*ec.PublicKey, m int, ...) (*MultiSig, error) + type TwoPartyPoolFundingResult = twoParty.FundingTxResult + func BuildTwoPartyPoolFundingTx(utxos []UTXO, poolAmount uint64, buyerPrivateKey *ec.PrivateKey, ...) (*TwoPartyPoolFundingResult, error) + type TwoPartyPoolRoles = twoParty.TwoPartyPoolRoles + type TwoPartyPoolStateInput = twoParty.StateInput + type UTXO = libs.UTXO Other modules containing this package github.com/bsv8/MultisigPool github.com/bsv8/MultisigPool/v3