signature

package
v0.0.4-ea46d2c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STANDARD = 0xAC
	MULTISIG = 0xAE

	PUSH1 = 0x51

	// signature length(0x40) || 64 bytes signature
	SignatureScriptLength = 65
)

Variables

This section is empty.

Functions

func GetDataContent

func GetDataContent(data SignableData) []byte

func ToProgramHash

func ToProgramHash(code []byte) (Uint168, error)

Types

type SignableData

type SignableData interface {
	//Get the the SignableData's program hashes
	GetProgramHashes() ([]Uint168, error)

	SetPrograms([]*program.Program)

	GetPrograms() []*program.Program

	SerializeUnsigned(io.Writer) error

	GetDataContent() []byte
}

SignableData describe the data need be signed.

Jump to

Keyboard shortcuts

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