Documentation ¶
Index ¶
- func ConvertP2MCProgram(prog []byte) ([]byte, error)
- func ConvertP2PKHSigProgram(prog []byte) ([]byte, error)
- func ConvertP2SHProgram(prog []byte) ([]byte, error)
- func DecodeP2WMCProgram(prog []byte) (*vmutil.MagneticContractArgs, error)
- func GetHashFromStandardProg(prog []byte) ([]byte, error)
- func IsP2WMCScript(prog []byte) bool
- func IsP2WPKHScript(prog []byte) bool
- func IsP2WSHScript(prog []byte) bool
- func IsP2WScript(prog []byte) bool
- func IsStraightforward(prog []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertP2MCProgram ¶ added in v1.0.5
ConvertP2MCProgram convert standard P2WMC program into P2MC program
func ConvertP2PKHSigProgram ¶
ConvertP2PKHSigProgram convert standard P2WPKH program into P2PKH program
func ConvertP2SHProgram ¶
ConvertP2SHProgram convert standard P2WSH program into P2SH program
func DecodeP2WMCProgram ¶ added in v1.0.5
func DecodeP2WMCProgram(prog []byte) (*vmutil.MagneticContractArgs, error)
DecodeP2WMCProgram parse standard P2WMC arguments to magneticContractArgs
func GetHashFromStandardProg ¶
GetHashFromStandardProg get hash from standard program
func IsP2WMCScript ¶ added in v1.0.5
IsP2WMCScript is used to determine whether it is a P2WMC script or not
func IsP2WPKHScript ¶
IsP2WPKHScript is used to determine whether it is a P2WPKH script or not
func IsP2WSHScript ¶
IsP2WSHScript is used to determine whether it is a P2WSH script or not
func IsP2WScript ¶
IsP2WScript is used to determine whether it is a P2WScript or not
func IsStraightforward ¶
IsStraightforward is used to determine whether it is a Straightforward script or not
Types ¶
This section is empty.