const envelope = signIso20022Payment({
messageId: "TX-20260929-88910",
messageType: "pacs.008",
payload: { amount: 1500000, currency: "EUR", debtor: "DE89370400440532013000" },
classicalKey: { privateKeyHex: edKey.privateKey, publicKeyHex: edKey.publicKey },
postQuantumKey: { secretKeyHex: mlKey.secretKey, publicKeyHex: mlKey.publicKey, level: 65 },
});
Creates an ISO 20022 post-quantum dual-signature envelope.
Produces an envelope containing both a classical signature (Ed25519) and a post-quantum lattice signature (ML-DSA-65 by default, FIPS 204) over the v2 signing statement, which binds the payload digest, message metadata, timestamp, algorithm identifiers and both signer public keys.