Interface PQSigningKey

A post-quantum public key, its scheme identifier, and a function that signs raw bytes with the corresponding secret key.

Remarks

pqSigner receives the exact bytes to sign, with every domain-separation prefix already applied, so it can be backed by a key that never leaves a wallet, HSM or hardware device.

interface PQSigningKey {
    pqPublicKey: Uint8Array;
    pqScheme: Uint8Array;
    pqSigner: ((bytesToSign) => Promise<Uint8Array>);
}

Properties

pqPublicKey: Uint8Array

The scheme's canonical public key.

pqScheme: Uint8Array

The 2-byte ASCII PQ scheme identifier (e.g. "f1" for Falcon-1024).

pqSigner: ((bytesToSign) => Promise<Uint8Array>)

Signs the given bytes verbatim with the corresponding secret key.

Type declaration

    • (bytesToSign): Promise<Uint8Array>
    • Signs the given bytes verbatim with the corresponding secret key.

      Parameters

      • bytesToSign: Uint8Array

      Returns Promise<Uint8Array>

Generated using TypeDoc