package
0.0.23
Repository: https://github.com/cybriq/p9.git
Documentation: pkg.go.dev

# Functions

EstimateSerializeSize returns a worst case serialize size estimate for a signed transaction that spends inputCount number of compressed P2PKH outputs and contains each transaction output from txOuts.
EstimateVirtualSize returns a worst case virtual size estimate for a signed transaction that spends the given number of P2PKH, P2WPKH and (nested) P2SH-P2WPKH outputs, and contains each transaction output from txOuts.

# Constants

P2PKHOutputSize is the serialize size of a transaction output with a P2PKH output script.
P2PKHPkScriptSize is the size of a transaction output script that pays to a compressed pubkey hash.
RedeemP2PKHInputSize is the worst case (largest) serialize size of a transaction input redeeming a compressed P2PKH output.
RedeemP2PKHSigScriptSize is the worst case (largest) serialize size of a transaction input script that redeems a compressed P2PKH output.