GUM Docs
Open GUM

Under the hood

Typed signatures and addresses

How GUM Network accepts signatures from Ethereum wallets, passkeys, social sign-in and session keys, and how each one maps to a 32-byte address.

On Solana, only an Ed25519 key can sign a transaction. GUM Network, the chain GUM runs on, replaces each signature with a typed signature: a one-byte type tag, followed by a payload in the format that tag defines. Validators verify every supported scheme themselves, so an Ethereum wallet, a passkey or a Google, Apple or X account can own a GUM Network account directly, the basis of a Universal Account. For the bytes of a whole transaction, see Transaction wire format.

Signature types

TagName in codeSchemeIn the GUM app
0x00Ed25519Ed25519, as on SolanaSolana wallets
0x01Secp256k1ECDSA on secp256k1—
0x02Secp256r1ECDSA on P-256—
0x10Secp256k1ETHEthereum personal_sign (EIP-191)EVM wallets
0x20Secp256r1PasskeyWebAuthn passkey (P-256)Passkeys
0x40OpenIDZKOpenIDZK sign-inGoogle, Apple and X
0x06DelegationSession keySessions for wallets and passkeys
0x60SubAccountDelegationSession key for a sub-account—

Validators reject tag 0x04, a retired OpenID signature without zero-knowledge proofs.

What each type signs and carries

  • 0x00: a 64-byte signature over the message bytes.
  • 0x01, 0x02: the public key (33 bytes compressed or 65 uncompressed), then r and s (32 bytes each), over SHA-256 of the message.
  • 0x10: the same payload as 0x01, over keccak256("\x19Ethereum Signed Message:\n" ‖ length ‖ message), with the length in decimal. This is standard personal_sign, so any EVM wallet signs without changes. The typed signature drops the wallet’s v and carries the public key instead.
  • 0x20: the public key (64 bytes), authenticator data, client data JSON and signature (64 bytes), verified as a WebAuthn assertion whose challenge is SHA-256 of the message. The client data type must be webauthn.get, and the authenticator must report user presence and user verification. It signs authenticatorData ‖ SHA-256(clientDataJSON).
  • 0x40, 0x06, 0x60: signed by a session key, covered below and in OpenIDZK proofs.

ECDSA signatures (0x01, 0x02, 0x10, 0x20) must use the low-S form.

Addresses

Every GUM Network address is 32 bytes. An Ed25519 signer’s address is its public key, so a Solana wallet keeps its base58 address on GUM Network. Every other type uses a typed address:

Layout
bytes 0–29   digest, which depends on the type
byte  30     type tag
byte  31     bump

The bump is the smallest value, counting up from 0, that puts the 32 bytes off the Ed25519 curve. So only the scheme named in byte 30 can sign for a typed address, and the same key under two types gives two different addresses.

For 0x01, 0x02, 0x10 and 0x20, validators recompute the address from the public key in the signature and require the smallest bump. A signature can only authorize the address its own key derives, so each sign-in method creates its own account.

TypeBytes 0–29
0x01, 0x02, 0x20The first 30 bytes of SHA-256 of the uncompressed public key (x ‖ y, 64 bytes)
0x10Bytes 0–19: the Ethereum address, keccak256(x ‖ y)[12..32]. Bytes 20–29: keccak256(ethereum_address)[20..30], a checksum
0x40The first 30 bytes of SHA-256(authority_account ‖ sub ‖ salt), proven inside the zero-knowledge proof. See OpenIDZK proofs
0x60Bytes 0–19: the first 20 bytes of the parent address. Bytes 20–29: a label of 1 to 10 bytes, padded with zeros

Worked example: an Ethereum address

The Ethereum address 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed maps to this GUM Network address:

Layout
bytes 0–19    5aaeb6053f3e94c9b9a09f33669435e7ef1beaed   the Ethereum address
bytes 20–29   4b9e849aa48d4d35f740                       keccak256(address)[20..30]
byte  30      10                                         Secp256k1ETH
byte  31      03                                         bumps 0, 1 and 2 are on the curve

base58        76zD55PjRdoDgfapMXpm1gdPy3XDt1pN595fybzQCuia

Because the Ethereum address sits in the first 20 bytes, you can derive the GUM Network address from an Ethereum address alone, and read the Ethereum address back out.

Session keys

To avoid a wallet or passkey prompt for every transaction, your device creates an Ed25519 session key with an expiry slot (slots are GUM Network’s unit of block time). Your wallet or passkey authorizes it once by signing a nonce derived from the session public key and expiry slot. Each transaction then carries a 0x06 signature, and validators verify your authorization against your address and the session signature against the message.

Layout
Delegation (0x06) payload
  32 bytes      session public key (Ed25519)
   8 bytes      expiry slot, u64 little-endian
  64 bytes      session key's signature over the message
  compact-u16   length of your authorization
  n bytes       your authorization: a typed signature (tag and payload) over the nonce
  • The signer slot in the transaction holds your address, not the session key’s.
  • Your authorization can be an Ed25519, secp256k1, P-256, Ethereum or passkey signature. OpenIDZK signatures don’t need 0x06: each one already carries its own session key and expiry.
  • A session is valid while the current slot is below its expiry slot, which the GUM app sets about two weeks ahead.

A session can do anything your account can, and it can’t be revoked before it expires.

Sub-account delegation

A sub-account is a second address derived from yours and a short label (the 0x60 row under Addresses). A 0x60 signature works like 0x06, except:

  • The session key can only act for that one sub-account: your authorization covers a nonce that commits to the session key, expiry slot and sub-account address.
  • The payload ends with the parent’s 32-byte address. Validators check that the sub-account shares its first 20 bytes, carries tag 0x60 and uses the smallest bump.
  • The parent can also be an OpenIDZK account. The session then ends at whichever expiry slot comes first: the sub-account session’s or the OpenIDZK session’s.

These protocol sub-accounts are separate from GUM Perps sub-accounts.

Planned: multi-factor accounts and recovery

Linking sign-in methods to one account, 2FA and recovery are planned through a future User Program, not available yet. Validators don’t accept a User signature type today.