← Back to dashboard
Infrastructure

Post-Quantum, by Default

Every PaymentOffer and PaymentProof carries an explicit signature_alg. Dilithium is the default. Falcon and SPHINCS+ are first-class. When NIST adds a Round-4 winner, the registry adds an entry.

Three Options

Choose the right tradeoff for your use case: balanced, compact, or maximum security.

Dilithium3
default
NIST Level3
Public key1,952 B
Signature3,293 B
Sign time0.3 ms
Verify time0.1 ms
Best forgeneral use
Falcon-512
compact
NIST Level1
Public key897 B
Signature666 B
Sign time0.5 ms
Verify time0.07 ms
Best forbandwidth
SPHINCS+-256f
conservative
NIST Level5
Public key64 B
Signature49,856 B
Sign time~180 ms
Verify time5 ms
Best formax security

Quick Start

# two-line PQ signing on a payment offer
from switchboard import PaymentOffer
from switchboard.pq import sign, ALG_DILITHIUM3

offer = PaymentOffer(
    pay_to="0xYourTreasury...",
    asset="0x036Cb...e7e",
    network="base-sepolia",
    amount="1000",
    signature_alg=ALG_DILITHIUM3,
)
offer.signature = sign(offer.canonical(), pq_key)