Skip to main content

MldsaSession

The MldsaSession class offers APIs for post-quantum ML-DSA Duo MPC key generation and signing.

Import

import { MldsaSession } from '@silencelaboratories/silent-shard-sdk/mldsa';

Extends

  • MpcSession

Properties

name

name: string

Inherited from

MpcSession.name


protocol

protocol: "duo" | "trio" | "m2m"

Inherited from

MpcSession.protocol

Methods

keygen()

keygen(level?): Promise<MldsaKeyshare>

Generates a new MPC ML-DSA client and server keyshares. And returns the client keyshare.

Parameters

level?

MldsaLevel

Optional ML-DSA security level (MlDsa44, MlDsa65, or MlDsa87). Defaults to MlDsa87.

Returns

Promise<MldsaKeyshare>

A Promise that resolves to a client keyshare.


sign()

sign(config): Promise<string>

Generate an ML-DSA signature using the MPC ML-DSA keyshares.

Parameters

config

MldsaSignConfig

The configuration for the signing.

Returns

Promise<string>

  • A Promise that resolves to a signature (Hex format).