contract

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSignatureContract

func CreateSignatureContract(ownerPubKey *crypto.PublicKey) (*types.Contract, error)

create a Single Singature contract for owner

func CreateSignatureRedeemScript

func CreateSignatureRedeemScript(pubkey *crypto.PublicKey) ([]byte, error)

Types

type ProgramBuilder

type ProgramBuilder struct {
	// contains filtered or unexported fields
}

func NewProgramBuilder

func NewProgramBuilder() *ProgramBuilder

func (*ProgramBuilder) AddCodes

func (pb *ProgramBuilder) AddCodes(codes []byte)

func (*ProgramBuilder) AddOp

func (pb *ProgramBuilder) AddOp(op avm.OpCode)

func (*ProgramBuilder) PushData

func (pb *ProgramBuilder) PushData(data []byte)

func (*ProgramBuilder) PushNumber

func (pb *ProgramBuilder) PushNumber(number *big.Int)

func (*ProgramBuilder) ToArray

func (pb *ProgramBuilder) ToArray() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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