GUM Docs
Open GUM

Under the hood

Transaction wire format

The byte layout of a GUM Network transaction: typed signature records in front of an unchanged Solana legacy message, and the Solana features GUM Network removes.

A GUM Network transaction is an unchanged Solana legacy message with typed signature records in front. Standard Solana SDKs can’t build or parse GUM Network transactions: they write bare 64-byte Ed25519 signatures, without the length and tag GUM Network requires. For the signature types, see Typed signatures and addresses.

How it differs from Solana

SolanaGUM Network
Signature schemesEd25519 onlyEight, identified by a type tag
One signature on the wire64 bytesLength, tag and payload: 66 bytes for Ed25519
Maximum transaction size1,232 bytes12,320 bytes
Message formatsLegacy and v0Legacy, plus a batched format for GUM batch transactions
Address lookup tablesYes, in v0 messagesNo
Durable noncesYesNo
Signature-verification precompilesEd25519, secp256k1None
Transaction IDThe first signatureDerived from the first signature, see Transaction ID

Layout

Layout
compact-u16   n, the number of signatures
n records, each:
  compact-u16   L, the record length (1 + payload length)
  u8            type tag
  L − 1 bytes   payload
message       Solana legacy message, byte for byte
  • n must equal the message’s required signature count, its first byte.
  • Record i signs for account key i of the message, which for typed signers is a typed address. Every record is verified against the serialized message.
  • Tools may mark an unsigned slot with a single 0x00 length byte, but validators reject a transaction until every slot is signed.

compact-u16 is Solana’s variable-length integer (shortvec): 7 bits per byte, lowest first, top bit set when another byte follows. Values up to 127 take one byte.

The message

Layout
u8            required signature count
u8            read-only signed account count
u8            read-only unsigned account count
compact-u16   account count, then 32 bytes per account key, signers first
32 bytes      recent blockhash
compact-u16   instruction count, then the instructions

The first byte must be below 0x80, or 0x81 for GUM Network’s batched format, which only approved senders can submit.

Worked example: one Ed25519 signer

Layout
offset   bytes      meaning
0        01         1 signature
1        41         record length 65
2        00         tag 0x00, Ed25519
3–66     64 bytes   Ed25519 signature over the message
67–      …          Solana legacy message

Record sizes

TypeRecord: tag and payloadOn the wire, with length
Ed25519 0x0065 bytes66 bytes
Secp256k1 0x01, Secp256r1 0x02, Ethereum 0x1098 bytes with a compressed key, 130 with an uncompressed key99 or 132 bytes
Passkey 0x20249 bytes or more, depending on the WebAuthn data251 bytes or more
OpenIDZK 0x40655 bytes plus the aud length, at most 816657 bytes plus the aud length, at most 818
Delegation 0x06105 bytes, plus the authorization and its length173 bytes with an Ed25519 authorization, 239 with an Ethereum one
Sub-account delegation 0x60As 0x06, plus 32 bytes205 bytes with an Ed25519 authorization, 271 with an Ethereum one

For an OpenIDZK aud longer than 127 bytes, add one byte. See OpenIDZK proofs.

Transaction ID

A transaction’s ID comes from its first signature and is written in base58:

  • Ed25519: the 64-byte signature itself, as on Solana.
  • Every other type: the SHA-512 hash of the typed signature bytes, tag included, also 64 bytes.

Removed Solana features

FeatureOn GUM Network
v0 messages and address lookup tablesRejected, and there’s no address lookup table program. List every account in the message itself.
Durable noncesEvery nonce instruction in the System Program fails. Use a recent blockhash.
Signature-verification precompilesNot installed. Use typed signatures instead.