Sign a payment
Both keys sign the same EIP-712 digest.
Planned. You can’t use this yet.
The data#
| Part | Value |
|---|---|
| Name | Nostra Limen |
| Version | 1 |
| Chain ID | The blockchain’s own |
| Verifying contract | The Limen account’s address |
Payment(address to,uint256 value,bytes data,uint256 nonce,uint256 deadline)The steps#
- Read
nonce()from the account. - Build the digest, or ask the contract with
paymentDigest. - Sign its 32 bytes with the ML-DSA-44 key.
- Sign the same 32 bytes with the SLH-DSA-SHA2-128s key.
- Send both proofs to
pay, with ML-DSA first.
The order matters. Swapped proofs are refused with BadProof(0).
Use paymentDigest on a node you trust, or build the digest yourself. A dishonest node could return the digest of a different payment.
Sizes#
| Public key | Signature | |
|---|---|---|
| ML-DSA-44 | 1,312 bytes | 2,420 bytes |
| SLH-DSA-SHA2-128s | 32 bytes | 7,856 bytes |