Expand description
Shared constants, discriminators, domain tags, and account state layout for the WinterWallet program. Used by both the on-chain program and off-chain clients to eliminate constant drift.
Modules§
- discriminator
- Instruction discriminator bytes matching the on-chain
matcharms.
Constants§
- ID
- The const program ID.
- MAX_
CPI_ INSTRUCTION_ ACCOUNTS - Upper bound on account metas per inner CPI’d instruction inside Advance.
- MAX_
PASSTHROUGH_ ACCOUNTS - Upper bound on trailing accounts an Advance instruction can commit to. Sizes the stack-allocated signature-preimage buffer used during recovery.
- SIGNATURE_
LEN - Signature byte length:
(N + 2) * 32. - TOTAL_
SCALARS - Total scalars including the two checksum scalars.
- WALLET_
ACCOUNT_ LEN - On-chain WinterWallet account data length:
id(32) + root(32) + bump(1). - WALLET_
BUMP_ OFFSET - Byte offset of the
bumpfield in the WinterWallet account. - WALLET_
ID_ OFFSET - Byte offset of the
idfield in the WinterWallet account. - WALLET_
ROOT_ OFFSET - Byte offset of the
rootfield in the WinterWallet account. - WINTERNITZ_
SCALARS - Number of Winternitz message scalars (N). Total scalars = N + 2.
- WINTERWALLET_
ADVANCE - Domain tag for the Advance preimage.
- WINTERWALLET_
INITIALIZE - Domain tag for the Initialize preimage.
- WINTERWALLET_
SEED - PDA seed prefix.