signature

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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 added in v0.0.2

func GetDataContent(data SignableData) []byte

func ToProgramHash added in v0.0.2

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