ReadonlygroupsStatic ReadonlyPACKET_PACKET_TYPE is the 1-byte TLV type tag used in the Extension envelope.
serialize encodes the packet as raw bytes (varint group count + group data). Does NOT include OP_RETURN, ARK magic, 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.
StaticcreateStaticfromStaticfromfromString 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.