signature

package
v0.0.2-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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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