vm

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VM

type VM interface {
	// ExecuteTransaction executes the Transaction and determines the Outputs from the given Inputs. It returns an error
	// if the execution fails.
	ExecuteTransaction(transaction utxo.Transaction, inputs *utxo.Outputs, gasLimit ...uint64) (outputs []utxo.Output, err error)

	// ParseTransaction un-serializes a Transaction from the given sequence of bytes.
	ParseTransaction([]byte) (transaction utxo.Transaction, err error)

	// ParseOutput un-serializes an Output from the given sequence of bytes.
	ParseOutput([]byte) (output utxo.Output, err error)

	// ResolveInput translates the Input into an OutputID.
	ResolveInput(input utxo.Input) (outputID utxo.OutputID)
}

VM is a generic interface for UTXO-based VMs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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