Versions in this module Expand all Collapse all v4 v4.1.1 May 14, 2024 v4.1.0 Jun 8, 2023 Changes in this version + const ErrNegativeRequiredSigs v4.0.0 Nov 19, 2021 Changes in this version + const ErrPubKeyType + const ErrTooManyRequiredSigs + const ErrTooMuchNullData + const ErrUnsupportedScriptVersion + const MaxDataCarrierSizeV0 + func DetermineRequiredSigs(scriptVersion uint16, script []byte) uint16 + func DetermineRequiredSigsV0(script []byte) uint16 + func ExtractCompressedPubKeyV0(script []byte) []byte + func ExtractPubKeyAltDetailsV0(script []byte) ([]byte, dcrec.SignatureType) + func ExtractPubKeyEd25519V0(script []byte) []byte + func ExtractPubKeyHashAltDetailsV0(script []byte) ([]byte, dcrec.SignatureType) + func ExtractPubKeyHashEd25519V0(script []byte) []byte + func ExtractPubKeyHashSchnorrSecp256k1V0(script []byte) []byte + func ExtractPubKeyHashV0(script []byte) []byte + func ExtractPubKeySchnorrSecp256k1V0(script []byte) []byte + func ExtractPubKeyV0(script []byte) []byte + func ExtractScriptHashV0(script []byte) []byte + func ExtractStakeChangePubKeyHashV0(script []byte) []byte + func ExtractStakeChangeScriptHashV0(script []byte) []byte + func ExtractStakeGenPubKeyHashV0(script []byte) []byte + func ExtractStakeGenScriptHashV0(script []byte) []byte + func ExtractStakePubKeyHashV0(script []byte) []byte + func ExtractStakeRevocationPubKeyHashV0(script []byte) []byte + func ExtractStakeRevocationScriptHashV0(script []byte) []byte + func ExtractStakeScriptHashV0(script []byte) []byte + func ExtractStakeSubmissionPubKeyHashV0(script []byte) []byte + func ExtractStakeSubmissionScriptHashV0(script []byte) []byte + func ExtractTreasuryGenPubKeyHashV0(script []byte) []byte + func ExtractTreasuryGenScriptHashV0(script []byte) []byte + func ExtractUncompressedPubKeyV0(script []byte) []byte + func IsMultiSigScript(scriptVersion uint16, script []byte) bool + func IsMultiSigScriptV0(script []byte) bool + func IsMultiSigSigScript(scriptVersion uint16, script []byte) bool + func IsMultiSigSigScriptV0(script []byte) bool + func IsNullDataScript(scriptVersion uint16, script []byte) bool + func IsNullDataScriptV0(script []byte) bool + func IsPubKeyEd25519Script(scriptVersion uint16, script []byte) bool + func IsPubKeyEd25519ScriptV0(script []byte) bool + func IsPubKeyHashEd25519Script(scriptVersion uint16, script []byte) bool + func IsPubKeyHashEd25519ScriptV0(script []byte) bool + func IsPubKeyHashSchnorrSecp256k1Script(scriptVersion uint16, script []byte) bool + func IsPubKeyHashSchnorrSecp256k1ScriptV0(script []byte) bool + func IsPubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsPubKeyHashScriptV0(script []byte) bool + func IsPubKeySchnorrSecp256k1Script(scriptVersion uint16, script []byte) bool + func IsPubKeySchnorrSecp256k1ScriptV0(script []byte) bool + func IsPubKeyScript(scriptVersion uint16, script []byte) bool + func IsPubKeyScriptV0(script []byte) bool + func IsScriptHashScript(scriptVersion uint16, script []byte) bool + func IsScriptHashScriptV0(script []byte) bool + func IsStakeChangePubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsStakeChangePubKeyHashScriptV0(script []byte) bool + func IsStakeChangeScriptHashScript(scriptVersion uint16, script []byte) bool + func IsStakeChangeScriptHashScriptV0(script []byte) bool + func IsStakeGenPubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsStakeGenPubKeyHashScriptV0(script []byte) bool + func IsStakeGenScriptHashScript(scriptVersion uint16, script []byte) bool + func IsStakeGenScriptHashScriptV0(script []byte) bool + func IsStakeRevocationPubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsStakeRevocationPubKeyHashScriptV0(script []byte) bool + func IsStakeRevocationScriptHashScript(scriptVersion uint16, script []byte) bool + func IsStakeRevocationScriptHashScriptV0(script []byte) bool + func IsStakeSubmissionPubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsStakeSubmissionPubKeyHashScriptV0(script []byte) bool + func IsStakeSubmissionScriptHashScript(scriptVersion uint16, script []byte) bool + func IsStakeSubmissionScriptHashScriptV0(script []byte) bool + func IsStandardAltSignatureTypeV0(op byte) bool + func IsTreasuryAddScript(scriptVersion uint16, script []byte) bool + func IsTreasuryAddScriptV0(script []byte) bool + func IsTreasuryGenPubKeyHashScript(scriptVersion uint16, script []byte) bool + func IsTreasuryGenPubKeyHashScriptV0(script []byte) bool + func IsTreasuryGenScriptHashScript(scriptVersion uint16, script []byte) bool + func IsTreasuryGenScriptHashScriptV0(script []byte) bool + func MultiSigRedeemScriptFromScriptSigV0(script []byte) []byte + func MultiSigScriptV0(threshold int, pubKeys ...[]byte) ([]byte, error) + func ProvablyPruneableScriptV0(data []byte) ([]byte, error) + type AtomicSwapDataPushesV0 struct + LockTime int64 + RecipientHash160 [20]byte + RefundHash160 [20]byte + SecretHash [32]byte + SecretSize int64 + func ExtractAtomicSwapDataPushesV0(redeemScript []byte) *AtomicSwapDataPushesV0 + type Error struct + Description string + Err error + func (e Error) Error() string + func (e Error) Unwrap() error + type ErrorKind string + func (e ErrorKind) Error() string + type MultiSigDetailsV0 struct + NumPubKeys uint16 + PubKeys [][]byte + RequiredSigs uint16 + Valid bool + func ExtractMultiSigScriptDetailsV0(script []byte, extractPubKeys bool) MultiSigDetailsV0 + type ScriptType byte + const STMultiSig + const STNonStandard + const STNullData + const STPubKeyEcdsaSecp256k1 + const STPubKeyEd25519 + const STPubKeyHashEcdsaSecp256k1 + const STPubKeyHashEd25519 + const STPubKeyHashSchnorrSecp256k1 + const STPubKeySchnorrSecp256k1 + const STScriptHash + const STStakeChangePubKeyHash + const STStakeChangeScriptHash + const STStakeGenPubKeyHash + const STStakeGenScriptHash + const STStakeRevocationPubKeyHash + const STStakeRevocationScriptHash + const STStakeSubmissionPubKeyHash + const STStakeSubmissionScriptHash + const STTreasuryAdd + const STTreasuryGenPubKeyHash + const STTreasuryGenScriptHash + func DetermineScriptType(scriptVersion uint16, script []byte) ScriptType + func DetermineScriptTypeV0(script []byte) ScriptType + func ExtractAddrs(scriptVersion uint16, pkScript []byte, params stdaddr.AddressParamsV0) (ScriptType, []stdaddr.Address) + func ExtractAddrsV0(pkScript []byte, params stdaddr.AddressParamsV0) (ScriptType, []stdaddr.Address) + func (t ScriptType) String() string