ReadonlygroupsStatic ReadonlyPACKET_PACKET_TYPE is the 1-byte TLV type tag used in the Extension envelope.
Convert the packet into the batch-leaf form for a specific intent transaction id.
serialize encodes the packet as raw bytes (varint group count + group data).
Does NOT include OP_RETURN, Arkade magic bytes (ARK), or TLV type/length; those are
added by the Extension module.
toString returns the hex-encoded raw packet bytes.
type returns the TLV packet type tag. Implements ExtensionPacket interface.
Validate packet structure and cross-group references.
StaticcreateCreate a validated asset packet from a list of asset groups.
StaticfromStaticfromfromString parses a Packet from a raw hex string (not an OP_RETURN script).
Packet represents a collection of asset groups. It encodes/decodes as raw bytes only — OP_RETURN framing is handled by the Extension module.