ReadonlyentriesStatic ReadonlyPACKET_PACKET_TYPE is the 1-byte TLV type tag used in the Extension envelope.
serialize returns the raw bytes of the packet (without type or length prefix)
type returns the 1-byte packet type tag
StaticcreateStaticfrom
EmulatorPacket implements ExtensionPacket for type 0x01.
Internal wire format (inside TLV payload): compactSize(entry_count) + for each entry: u16_le(vin) + compactSize(script_len) + script + compactSize(witness_len) + witness
Uses Bitcoin CompactSize encoding for internal length fields.