# Functions

AddBip32Derivation adds the given target BIP-0032 derivation to the list of derivations if it is not already present.
AddCustomField adds a custom field to the given unknown values.
AddOutput adds an interactive output to the given packet.
AddTaprootBip32Derivation adds the given target Taproot BIP-0032 derivation to the list of derivations if it is not already present.
Bip32DerivationFromKeyDesc returns the default and Taproot BIP-0032 key derivation information from the given key descriptor information.
CommitmentVersion returns the Taproot Asset commitment version that matches the VPacket version.
Decode decodes a virtual packet from a byte slice.
Encode encodes the virtual packet into a byte slice.
ExtractCustomField returns the value of a custom field in the given unknown values by key.
ForInteractiveSend creates a virtual transaction packet for sending an output to a receiver in an interactive manner.
FromAddresses creates an empty virtual transaction packet from the given addresses.
FromProofs creates a packet from the given proofs that adds them as inputs to the packet.
KeyDescFromBip32Derivation attempts to extract the key descriptor from the given public key and BIP-0032 derivation information.
NewFromPsbt returns a new instance of a VPacket struct created by reading the custom fields on the given PSBT packet.
NewFromRawBytes returns a new instance of a VPacket struct created by reading from a byte slice.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OwnershipProofPacket creates a virtual transaction packet that is used to prove ownership of an asset.
RandPacket generates a random virtual packet for testing purposes.

# Constants

TypeSimple is a plain full-value or split output that is not a split root and does not carry passive assets.
TypeSplitRoot is a split root output that carries the change from a split or a tombstone from a non-interactive full value send output.
V0 is the initial VPacket version.
V1 VPackets require V2 TapCommitments for all VOutputs.

# Variables

ErrInvalidVPacketVersion is an error returned when a VPacket version is invalid.
ErrKeyNotFound is returned when a key is not found among the unknown fields of a packet.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
PsbtKeyTypeOutputAssetRoot is the key used to store the Taproot Asset commitment root hash in the BTC level anchor transaction PSBT.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
PsbtKeyTypeOutputTaprootMerkleRoot is the key used to store the Taproot Merkle root in the BTC level anchor transaction PSBT.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
We define a set of Taproot Asset (TAP) specific global, input and output PSBT key types here that correspond to the custom types defined in the VPacket below.
VOutIsInteractive is a predicate that returns true if the virtual transaction is interactive.
VOutIsNotSplitRoot is a predicate that returns true if the virtual output is NOT a split root output.
VOutIsSplitRoot is a predicate that returns true if the virtual output is a split root output.

# Structs

Anchor is a struct that contains all the information about an anchor output.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:lll.
No description provided by the author
No description provided by the author
VInput represents an input to a virtual asset state transition transaction.
VOutput represents an output of a virtual asset state transition.
VPacket is a PSBT extension packet for a virtual transaction.

# Type aliases

InputCommitments is a map from virtual package input prevID to its associated Taproot Asset commitment.
OutputCommitments is a map from anchor transaction output index to its associated Taproot Asset commitment.
VOutPredicate is a function that can be used to filter virtual outputs.
VOutputType represents the type of virtual output.
VPacketVersion is the version of the virtual transaction.