Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2026 Changes in this version + func AttachTriplePoolASignature(state *tx.Transaction, signature []byte) (*tx.Transaction, error) + func AttachTriplePoolServerSignature(state *tx.Transaction, signature []byte) (*tx.Transaction, error) + func BuildTripleFeePoolSpendTX(A_Tx *tx.Transaction, serverValue uint64, endHeight uint32, ...) (*tx.Transaction, *[]byte, uint64, error) + func BuildTriplePoolFinalState(input TriplePoolStateInput) (*tx.Transaction, error) + func BuildTriplePoolInitialState(input TriplePoolStateInput) (*tx.Transaction, error) + func BuildTriplePoolLock(server, a, b *ec.PublicKey) (*script.Script, error) + func BuildTriplePoolOpeningState(input TriplePoolOpeningInput) (*tx.Transaction, error) + func BuildTriplePoolState(input TriplePoolStateInput) (*tx.Transaction, error) + func ClientATripleFeePoolSpendTXUpdateSign(tx *tx.Transaction, serverPublicKey *ec.PublicKey, aPrivateKey *ec.PrivateKey, ...) (*[]byte, error) + func ClientBTripleFeePoolSpendTXUpdateSign(tx *tx.Transaction, serverPublicKey *ec.PublicKey, aPublicKey *ec.PublicKey, ...) (*[]byte, error) + func ClientTripleFeePoolSpendTXUpdateSign(tx *tx.Transaction, clientPrivateKey *ec.PrivateKey, ...) (*[]byte, error) + func ClientVerifyServerSig(transactionObject *tx.Transaction, totalAmount uint64, ...) (bool, error) + func MergeTripleFeePoolSigForSpendTx(txHex string, aSignByte *[]byte, bSignByte *[]byte) (*tx.Transaction, error) + func MergeTriplePoolServerA(txHex string, serverSig, aSig *[]byte) (*tx.Transaction, error) + func MergeTriplePoolServerAWithRoles(txHex string, serverSig, aSig *[]byte, server, a, b *ec.PublicKey, ...) (*tx.Transaction, error) + func MergeTriplePoolServerB(txHex string, serverSig, bSig *[]byte) (*tx.Transaction, error) + func MergeTriplePoolServerBWithRoles(txHex string, serverSig, bSig *[]byte, server, a, b *ec.PublicKey, ...) (*tx.Transaction, error) + func ServerTripleFeePoolSpendTXUpdateSign(tx *tx.Transaction, serverPrivateKey *ec.PrivateKey, aPublicKey *ec.PublicKey, ...) (*[]byte, error) + func ServerVerifyClientASig(transactionObject *tx.Transaction, totalAmount uint64, ...) (bool, error) + func ServerVerifyClientBSig(transactionObject *tx.Transaction, totalAmount uint64, ...) (bool, error) + func SignTriplePoolAsA(state *tx.Transaction, a *ec.PrivateKey, server, b *ec.PublicKey) (*[]byte, error) + func SignTriplePoolAsB(state *tx.Transaction, b *ec.PrivateKey, server, a *ec.PublicKey) (*[]byte, error) + func SignTriplePoolAsServer(state *tx.Transaction, server *ec.PrivateKey, a, b *ec.PublicKey) (*[]byte, error) + func SpendTXTripleFeePoolASign(B_Tx *tx.Transaction, targetAmount uint64, serverPublicKey *ec.PublicKey, ...) (*[]byte, error) + func SpendTXTripleFeePoolBSign(transactionObject *tx.Transaction, targetAmount uint64, ...) (*[]byte, error) + func SubBuildTripleFeePoolSpendTX(prevTxId string, serverValue uint64, endHeight uint32, ...) (*tx.Transaction, uint64, error) + func TripleFeePoolLoadTx(txHex string, locktime *uint32, sequenceNumber uint32, serverAmount uint64, ...) (*transaction.Transaction, error) + func TripleFeePoolSpentScript(serverPublicKey *ec.PublicKey, aPublicKey *ec.PublicKey, ...) (*script.Script, error) + func TriplePoolFeeSat(serializedSize int, rate FeeSatPerKB) (uint64, error) + func VerifySignature(tx *tx.Transaction, inputIndex uint32, publicKey *ec.PublicKey, ...) (bool, error) + func VerifyTriplePoolASignature(state *tx.Transaction, a *ec.PublicKey, server, b *ec.PublicKey, ...) (bool, error) + func VerifyTriplePoolBSignature(state *tx.Transaction, b *ec.PublicKey, server, a *ec.PublicKey, ...) (bool, error) + func VerifyTriplePoolServerSignature(state *tx.Transaction, server *ec.PublicKey, a, b *ec.PublicKey, ...) (bool, error) + func VerifyTriplePoolState(state *tx.Transaction, server, a, b *ec.PublicKey, ...) error + func VerifyTriplePoolStateWithFee(state *tx.Transaction, server, a, b *ec.PublicKey, ...) error + type BuildStep1Response struct + Amount uint64 + Index int + Tx *tx.Transaction + func BuildTripleFeePoolBaseTx(clientUtxo *[]libs.UTXO, serverPublicKey *ec.PublicKey, ...) (*BuildStep1Response, error) + type FeeSatPerKB uint64 + type TriplePoolOpeningInput struct + A *ec.PublicKey + B *ec.PublicKey + FeeRate FeeSatPerKB + FundingTxID []byte + LockTime uint32 + PoolAmount uint64 + PoolOutputIndex uint32 + Server *ec.PublicKey + type TriplePoolStateInput struct + A *ec.PublicKey + B *ec.PublicKey + FeeRate FeeSatPerKB + LockTime *uint32 + PoolAmount uint64 + PreviousRawTx []byte + SellerAmount uint64 + Sequence uint32 + Server *ec.PublicKey