@thruputchain/client
    Preparing search index...

    Class MlDsa65Signer

    ML-DSA-65 (FIPS 204) signer backed by an in-memory key derived from a seed.

    Signatures are pure ML-DSA (not HashML-DSA) with an empty context string, over the same transaction signature preimage an Ed25519 signer signs. Keys are scheme-tagged PublicKey values; there is no StrKey form for them.

    Signing is hedged by default (fresh randomness mixed into each signature). Pass { deterministic: true } for the FIPS 204 deterministic variant, which reproduces the same signature for the same key and message.

    import { MlDsa65Signer } from "@thruputchain/client/signers";

    const signer = MlDsa65Signer.fromSeed(seed); // 32 bytes
    const signature = await signer.sign(message);

    Implements

    Index

    Properties

    Methods

    Properties

    publicKey: {}

    Scheme-tagged ML-DSA-65 public key derived from the seed.

    Methods

    • Sign a message with pure ML-DSA-65 and an empty context.

      Parameters

      • message: Uint8Array

      Returns Promise<Signature>

    • Derive an ML-DSA-65 key pair from a 32-byte FIPS 204 ΞΎ seed.

      Parameters

      • seed: Uint8Array
      • options: { deterministic?: boolean } = {}

      Returns MlDsa65Signer