scripts

package
v0.0.0-...-509fca3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opcode

type Opcode byte
const (
	OP_FALSE Opcode = 0x00
	OP_TRUE  Opcode = 0x50

	OP_DUP   Opcode = 0x64
	OP_EQUAL Opcode = 0x78

	OP_VERIFY Opcode = 0x8c

	OP_HASH160  Opcode = 0xa0
	OP_CHECKSIG Opcode = 0xaa
)

type Script

type Script struct {
	Tx               *network.TxMessage
	Input            *network.TxIn
	SpentOutputValue uint64
	Opcodes          []Opcode
}

func NewScript

func NewScript(tx *network.TxMessage, input *network.TxIn, spentOutputValue uint64, outputScript []byte, inputScript []byte) *Script

func (*Script) Validate

func (script *Script) Validate() (bool, error)

Jump to

Keyboard shortcuts

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