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
| Tag | Name in code | Scheme | In the GUM app |
|---|---|---|---|
0x00 | Ed25519 | Ed25519, as on Solana | Solana wallets |
0x01 | Secp256k1 | ECDSA on secp256k1 | — |
0x02 | Secp256r1 | ECDSA on P-256 | — |
0x10 | Secp256k1ETH | Ethereum personal_sign (EIP-191) | EVM wallets |
0x20 | Secp256r1Passkey | WebAuthn passkey (P-256) | Passkeys |
0x40 | OpenIDZK | OpenIDZK sign-in | Google, Apple and X |
0x06 | Delegation | Session key | Sessions for wallets and passkeys |
0x60 | SubAccountDelegation | Session 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), thenrands(32 bytes each), over SHA-256 of the message.0x10: the same payload as0x01, overkeccak256("\x19Ethereum Signed Message:\n" ‖ length ‖ message), with the length in decimal. This is standardpersonal_sign, so any EVM wallet signs without changes. The typed signature drops the wallet’svand 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 bewebauthn.get, and the authenticator must report user presence and user verification. It signsauthenticatorData ‖ 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:
bytes 0–29 digest, which depends on the type
byte 30 type tag
byte 31 bumpThe 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.
| Type | Bytes 0–29 |
|---|---|
0x01, 0x02, 0x20 | The first 30 bytes of SHA-256 of the uncompressed public key (x ‖ y, 64 bytes) |
0x10 | Bytes 0–19: the Ethereum address, keccak256(x ‖ y)[12..32]. Bytes 20–29: keccak256(ethereum_address)[20..30], a checksum |
0x40 | The first 30 bytes of SHA-256(authority_account ‖ sub ‖ salt), proven inside the zero-knowledge proof. See OpenIDZK proofs |
0x60 | Bytes 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:
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 76zD55PjRdoDgfapMXpm1gdPy3XDt1pN595fybzQCuiaBecause 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.
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
0x60and 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.