nostra.sh$NOSTRA

Sign a payment

Both keys sign the same EIP-712 digest.

Planned. You can’t use this yet.

The data#

PartValue
NameNostra Limen
Version1
Chain IDThe blockchain’s own
Verifying contractThe Limen account’s address
Payment(address to,uint256 value,bytes data,uint256 nonce,uint256 deadline)

The steps#

  1. Read nonce() from the account.
  2. Build the digest, or ask the contract with paymentDigest.
  3. Sign its 32 bytes with the ML-DSA-44 key.
  4. Sign the same 32 bytes with the SLH-DSA-SHA2-128s key.
  5. 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 keySignature
ML-DSA-441,312 bytes2,420 bytes
SLH-DSA-SHA2-128s32 bytes7,856 bytes