# Cryptography
| Parameter | Value | Where |
|---|---|---|
| Hash | SHA-256 | all PQ primitives |
| Winternitz w | 16 | wots.ts |
| Hash output N | 32 bytes | wots.ts |
| WOTS chains LEN1 | 64 | 256 bits / log2(16) |
| WOTS checksum LEN2 | 3 | max 64×15 < 16³ |
| WOTS total chains LEN | 67 | LEN1 + LEN2 |
| Merkle height H | 8 | 256 leaves |
| Leaves per identity | 256 | indices 0…255 |
| Address encoding | tweaked (type‖a‖b‖c) | SPHINCS+/XMSS style |
| Scheme string | WOTS(w=16, SHA-256) + Merkle(h=8) | SITE.scheme |
# Messages
| Message | Purpose | Notes |
|---|---|---|
| Derivation | personal_sign → skSeed / pubSeed | Domain qFOUR, names BNB Chain, warns against other sites |
| Register identity | Bind wallet ↔ pq address ↔ root | Wallet signature over registration statement |
| Reserve leaf | Allocate next free one-time key | Signed; purpose launch; refuse reuse |
| Launch digest | What the WOTS leaf signs | mint, creator, name, symbol, image, leaf, optional scheme |
| Record launch | API attestation statement | Includes tx hash + message hash |
Digests are SHA-256(DOMAIN/kind/vVERSION \\n sorted key=value lines). Domain qFOUR, version 1.
# Chain & four.meme
| Parameter | Value |
|---|---|
| Chain | BNB Smart Chain |
| Chain id | 56 |
| TokenManager2 | 0x5c952063c7fc8610FFDB798152D69F0B9550762b |
| Helper3 | 0xF251F83e40a78868FcfA3FA4599Dad6494E46034 |
| API base | https://four.meme/meme-api |
| Image hosts | static.four.meme, four.meme, meme-market.s3.ap-northeast-1.amazonaws.com |
| Explorer | https://bscscan.com |
# Capacity
| Budget | Limit |
|---|---|
| Signatures per identity | 256 (then rotate / new identity) |
| Leaf index range recorded at launch | 1…255 in API validation today |
| One leaf | exactly one message |
| War / quantum labels | encoded in launch digest scheme field |
Next: overview, threat model, verify.
