scriptbasetypes

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: ISC Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const SPECIAL_CROSS_TYPE = "crossimport"

special script from evm to meer

View Source
const SPECIAL_CROSS_VAL txscript.ScriptClass = 255

Variables

This section is empty.

Functions

func GetScriptType

func GetScriptType(scriptTyp string) txscript.ScriptClass

Types

type CLTVPubKeyHashScript

type CLTVPubKeyHashScript struct {
	LockTime int64
}

func (*CLTVPubKeyHashScript) Sign

func (this *CLTVPubKeyHashScript) Sign(privKey string, mtx *types.Transaction, inputIndex int, param *params.Params) error

type CrossImportScript

type CrossImportScript struct {
}

func (*CrossImportScript) Sign

func (this *CrossImportScript) Sign(privKey string, mtx *types.Transaction, inputIndex int, param *params.Params) error

evm to meer lock script

type PubKeyScript

type PubKeyScript struct {
}

func (*PubKeyScript) Sign

func (this *PubKeyScript) Sign(privKey string, mtx *types.Transaction, inputIndex int, param *params.Params) error

type ScriptTypeRegular

type ScriptTypeRegular struct {
}

func (*ScriptTypeRegular) Sign

func (this *ScriptTypeRegular) Sign(privKey string, mtx *types.Transaction, inputIndex int, param *params.Params) error

type TxSignBase

type TxSignBase interface {
	Sign(privateKey string, mtx *types.Transaction, inputIndex int, param *params.Params) error
}

func NewTxSignObject

func NewTxSignObject(scripttype txscript.ScriptClass, lockTime int64) TxSignBase

Jump to

Keyboard shortcuts

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