transaction

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Key     *secp256k1.Secp256k1Key
	Payload interface{}
}

func NewContext

func NewContext(ecPrivateKey string) (*Context, error)

func NewContextWithPayload

func NewContextWithPayload(ecPrivateKey string, payload interface{}) (*Context, error)

type ScriptGroup

type ScriptGroup struct {
	Script        *types.Script    `json:"script"`
	GroupType     types.ScriptType `json:"group_type"`
	InputIndices  []uint32         `json:"input_indices"`
	OutputIndices []uint32         `json:"output_indices"`
}

func (*ScriptGroup) UnmarshalJSON

func (r *ScriptGroup) UnmarshalJSON(input []byte) error

type TransactionWithScriptGroups

type TransactionWithScriptGroups struct {
	TxView       *types.Transaction `json:"tx_view"`
	ScriptGroups []*ScriptGroup     `json:"script_groups"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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