Chipset / what opeq is
A wallet that stays safe
opeq is a Solana program, a set of EVM contracts and a client. Your funds sit in an address that has no private key at all. The code on chain moves them only after it checks a hash-based signature.
- A normal address
- Receive SOL, hold SPL and Token-2022 tokens, share it like any other address. Other programs see an ordinary signer.
- Works with any app
- One signature authorizes a list of instructions to any programs. Tested with transfers, tokens, token accounts and Memo. On mainnet, swaps route through Jupiter.
- Same address forever
- One key tree signs 688 transactions. A rekey moves to a fresh tree in one click. Your address, balances and token accounts never change.
- 24 recovery words
- Standard BIP39 words. Every key tree is derived from them, so the words stay valid after any number of rekeys.
- No protocol change
- Runs on Solana and the EVM networks as they are today. No new chain, no fork, no waiting for a network upgrade.
- Quantum-safe upgrades
- The program's own upgrade key is an opeq wallet. Even the code can't be changed with a broken Ed25519 key.
- EVM accounts
- The same 24 words open a smart-contract account on Ethereum, Base, Arbitrum, Robinhood Chain and Elysium, with the same address on all five. It checks the same kind of hash-based signature, built on keccak256. Send ETH and ERC-20 tokens and swap on Uniswap; a small gas key derived from your words pays the network fees and has no power over the account.
- Multisig
- Optional. A shared vault moves funds only after several opeq wallets approve, for example 2 of 3. Every owner is an opeq wallet or account, never a plain Ed25519 or ECDSA key, so every approval is a one-time hash-based signature. On Solana and on all four EVM networks.
- Bridge
- Move SOL, ETH, HYPE and USDC between Solana and the five EVM networks, from inside the wallet, always to your own address. Bridged by Relay: the wallet checks Relay's order and builds the deposit itself before you sign. OPEQ takes no fee.
- No dApp connections
- The wallet signs only what you build inside it. No website can connect to it or ask it for a signature, so wallet drainers and fake signature requests have nothing to hook into.
RAM / specification
The details
Everything needed to write an independent client or verifier, for Solana, EVM and multisig.
Parameters
- one-time signature
- WOTS+, n = 16 bytes, w = 256, 16 message + 2 checksum chains
- signature size
- 288 B (18 x 16)
- merkle tree
- height 10, 1024 leaves, auth path 160 Bleaves 0..1007 sign actions, 1008..1023 only rekeys
- tweakable hash
- F(x) = SHA256(pub_seed16 || ADRS8 || x)[0..16]
- ADRS (8 bytes)
- type u8 | a u8 | b u8 | 0 | index u32le
- hash types
- 0 chain (a = chain, b = position, index = leaf)1 leaf (index = leaf)2 node (a = height, index = node)3 secret (client only)
- checksum
- sum(255 - d) over 16 digits, as 2 base-256 digits (max 4080)
- tree seeds
- sk = SHA256("opeq/tree/sk/v1" || master || epoch u32le)pub = SHA256("opeq/tree/pub/v1" || master || epoch u32le)[0..16]
- master seed
- 32 bytes, shown as 24 BIP39 English words
- account id
- SHA256("opeq/id/v1" || pub_seed of tree 0 || root of tree 0)
- addresses (PDAs)
- state = ["s", account id], wallet = ["w", account id]
- expiry
- named by the signer, at most 300 slots ahead, checked on chain
Signed message
digest = SHA256(
R (16 random bytes)
|| "opeq/exec/v1" || program id || account id
|| epoch u32 || leaf u32 || expiry slot u64
|| count u8
|| for each inner instruction:
program id || meta count u8
|| for each account:
pubkey || flags u8
(flags: 1 = signer, 2 = writable)
|| data length u16 || data
|| salt u32
)[0..16]
Rekey uses "opeq/rekey/v1" and hashes the new public seed and new root instead of instructions. The client tries 217 salts and keeps the one with the fewest verification steps.
Instructions and state
0 init tag | pub_seed 16 | root 16 | lamports u64
payer (s, w), state (w), wallet, system
1 exec tag | leaf u32 | expiry u64 | salt u32 | R 16
| sig 288 | path 160 | count u8 | inner...
state (w), wallet (w), every account used
2 rekey tag | leaf u32 | expiry u64 | salt u32 | R 16
| sig 288 | path 160 | new pub_seed 16 | new root 16
state (w), wallet
state account, 88 bytes
0 magic "OPEQST01" 40 pub_seed (16)
8 account id (32) 56 root (16)
72 next leaf u32 76 epoch u32
80 state bump, wallet bump, 6 zero bytes
costs
SOL transfer about 160,000 CU
Raydium swap about 200,000 CU
base fee 5000 lamports
transfer ix data 502 bytes of 1232
Error codes
1bad instruction13bad signature2too many accounts14state not writable3state not owned by program15init address mismatch4bad state account16too many slices5wallet/state mismatch17account index out of range6signature expired18payer must sign7leaf already used19already initialized8leaf out of range20bad system program9self cpi21too many metas10bad meta flags22rekey to the current root11signer escalation23expiry too far in the future12malformed inner instructions
EVM accounts
- networks
- Ethereum (1), Base (8453), Arbitrum (42161), Robinhood Chain (4663), Elysium (99901)
- account factory
- 0xa9993f90af137adc80c70814d27fe4ecc773b50b, same address on all five, no owner
- one-time signature
- WOTS+ as on Solana, n = 16 bytes, w = 256, 18 chains, with keccak256 instead of SHA-256
- proof size
- 448 B (288 B signature + 160 B Merkle path)
- merkle tree
- height 10, 1024 leavesleaves 0..959 sign calls, 960..1023 only rekeys and device takeovers
- trees
- one identity tree fixes the address on every networkeach network gets its own key trees, so a key is never shared between networks
- deadline
- named by the signer, at most 1 hour ahead, checked on chain
- gas key
- secp256k1, derived from the 24 words, pays gas only
- gas
- about 170,000 to 200,000 per send
digest = keccak256(abi.encode(
rnd (16 random bytes),
keccak256("opeq/evm/exec/v1"),
chain id, account address, epoch,
leaf, deadline,
keccak256(abi.encode(calls)),
salt
))[0..16]
execute(calls, leaf, deadline, salt, rnd, proof 448 B)
rekey(new pub_seed, new root, leaf, deadline, salt, rnd, proof)
Multisig
Optional and separate from the wallet: a normal opeq wallet never needs it. Every owner is an opeq wallet or opeq account, so each approval is that owner's own hash-based signature. A proposal stores the full instructions or calls on chain, so every owner approves exactly what will run. Owner and threshold changes are proposals too, and they void every open proposal.
- Solana program
- 3qjjDf8MdqDTFmBm3zJfKFqZKbZ5xgZM1ntGYVeqEuHBcode sha256 83ff2e876a98bccc62080f739792860c0b964355b9848c0cf6695dee28fc222cupgrade key: the admin opeq wallet, locked after the external audit
- EVM factory
- 0x260e85a98575012b816605b0feacb6cfdde78cef on all five networks, immutable
- owners
- Solana: up to 8 opeq wallets, named by their owner ID (account id)EVM: up to 10 opeq accounts, checked by code hash
- Solana addresses (PDAs)
- multisig = ["m", creator, nonce 32]deposit address = ["v", multisig]proposal = ["p", multisig, proposer, config u32, seq u32]
- EVM vault address
- CREATE2 from (owners, threshold, nonce): the same on every network
- proposal lifetime
- at most 30 days
Solana instructions
0 create threshold | nonce 32 | owners
1 propose expires i64 | stored instructions
2 approve id u64 | content hash 32
3 revoke id u64 | content hash 32
4 cancel id u64 (proposer only)
5 execute id u64 (any owner, enough approvals)
6 close id u64 (rent back to the proposer)
7 sweep moves SOL sent to the multisig ID
to its deposit address
EVM calls
propose(calls, expires) approve(id, callsHash)
revoke(id, callsHash) cancel(id)
execute(id, calls) setOwners / setThreshold
(only through an executed proposal)
Send funds only to the deposit address on Solana, or to the vault address on the network it was created on. The multisig ID is for sharing with co-owners.