interfaces

package
v0.0.0-...-e920dd0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICrypto

type ICrypto interface {
	Hash168(data []byte) []byte

	Hash160(data []byte) []byte

	Hash256(data []byte) []byte

	VerifySignature(data []byte, signature []byte, pubkey []byte) error
}

type IDataContainer

type IDataContainer interface {
	GetData() []byte
}

type IGeneralInterface

type IGeneralInterface interface {
	Serialize(w io.Writer) error
	Deserialize(r io.Reader) error
}

type IScriptTable

type IScriptTable interface {
	GetScript(hash []byte) []byte

	GetTxReference(tx *IDataContainer) (map[*types.Input]*types.Output, error)
}

type ISignable

type ISignable interface {
	GetSignableData() []byte
}

Jump to

Keyboard shortcuts

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