Data Schemas
Data Schemas
1. Intent JSON Schema
{
"version": "1.3.4",
"timestamp": 1717617302,
"nonce": "0x3ae3ef7d3b5f4f3c",
"nullifier": "0x7834fdef1ab3920c42d...",
"ephemeral_pubkey": "0x037aa4d912...",
"side": "long", // or "short"
"leverage": 10,
"notional": "100000000", // in USD e6
"price_limit": "3300000", // optional, in USD e6
"expiry": 1717620902,
"margin_commitment": "0x023e91ab...", // commitment to margin held in CipherVault
"intent_hash": "0xposeidon_hash(intent_fields...)",
"signature": "0xeddsa_signature"
}Field Explanations
2. UTXO Format (Encrypted Vault Note)
Internal Components (Inside Commitment)
Nullifier Format
3. Serialization and Encoding
4. Integration Examples
Conclusion
Last updated

