# Functions
New returns a new virtual machine capable of executing and verifying Taproot Asset state transitions.
ValidateWitnesses is a helper method that checks the witnesses provided over an asset transfer.
WithBlockHeight can be used to create an engine that validates time locks against the given block height instead of the current best known block.
WithChainLookup can be used to create an engine that is capable of validating time locks.
WithSkipTimeLockValidation can be used to create an engine that skips validating time locks.
# Constants
ErrAmountMismatch represents an error case where an asset, along with its splits, do not match the total asset amount of their inputs.
ErrIDMismatch represents an error case where an asset, or asset split, do not match the asset genesis of their inputs.
ErrInvalidGenesisStateTransition represents an error case where an asset has a valid genesis witness but the virtual machine was provided asset inputs.
ErrInvalidRootAsset represents an error case where the root asset of an asset split has zero value but a spendable script key.
ErrInvalidSigHashFlag represents an error case where an asset witness contains signatures created with any sighash flag other than SIGHASH_DEFAULT.
ErrInvalidSplitAssetType represents an error case where an asset split type does not match the root asset.
ErrInvalidSplitCommitmentProof represents an error case where an asset split has an invalid split commitment proof.
ErrInvalidSplitCommitmentWitness represents an error case where an asset input has a malformed split commitment witness.
ErrInvalidTransferWitness represents an error case where an asset input has a malformed or invalid transfer witness as deemed by the virtual machine.
ErrNoSplitCommitment represents an error case where a split commitment root is not present when required.
ErrScriptKeyMismatch represents an error case where an the script key of an asset input does not match the one of the input provided to the virtual machine.
ErrTypeMismatch represents an error case where an asset, or asset split, do not match the asset type of their inputs.
ErrUnfinalizedAsset represents an error case where the asset has not been finalized.
# Variables
ErrInputMismatch represents an error case where an asset's set of inputs mismatch the set provided to the virtual machine.
ErrInvalidScriptVersion represents an error case where an asset input commits to an invalid script version.
ErrNoInputs represents an error case where an asset undergoing a state transition does not have any or a specific input required.
# Structs
Engine is a virtual machine capable of executing and verifying Taproot asset state transitions.
Error represents an error returned by the Taproot Asset VM.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ErrorKind uniquely identifies the kind of Error returned by the Taproot Asset VM.
NewEngineOpt is used to modify how a new engine is to be created.