segwit

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: AGPL-3.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertP2MCProgram added in v1.0.5

func ConvertP2MCProgram(prog []byte) ([]byte, error)

ConvertP2MCProgram convert standard P2WMC program into P2MC program

func ConvertP2PKHSigProgram

func ConvertP2PKHSigProgram(prog []byte) ([]byte, error)

ConvertP2PKHSigProgram convert standard P2WPKH program into P2PKH program

func ConvertP2SHProgram

func ConvertP2SHProgram(prog []byte) ([]byte, error)

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

func GetHashFromStandardProg(prog []byte) ([]byte, error)

GetHashFromStandardProg get hash from standard program

func IsP2WMCScript added in v1.0.5

func IsP2WMCScript(prog []byte) bool

IsP2WMCScript is used to determine whether it is a P2WMC script or not

func IsP2WPKHScript

func IsP2WPKHScript(prog []byte) bool

IsP2WPKHScript is used to determine whether it is a P2WPKH script or not

func IsP2WSHScript

func IsP2WSHScript(prog []byte) bool

IsP2WSHScript is used to determine whether it is a P2WSH script or not

func IsP2WScript

func IsP2WScript(prog []byte) bool

IsP2WScript is used to determine whether it is a P2WScript or not

func IsStraightforward

func IsStraightforward(prog []byte) bool

IsStraightforward is used to determine whether it is a Straightforward script or not

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL