The MLDSASignature interface represents a quantum-resistant ML-DSA signature result. It includes the signature and public key in hex format, the security level used, and the message hash that was signed.
MLDSASignature
Overview
The full source code is available on GitHub at IWeb3ProviderTypes.ts.
Import
import { MLDSASignature } from '@btc-vision/transaction';Interface
Signature
interface MLDSASignature {
readonly signature: string;
readonly publicKey: string;
readonly securityLevel: MLDSASecurityLevel;
readonly messageHash: string;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| signature | string | Yes | The ML-DSA signature in hex format. |
| publicKey | string | Yes | The ML-DSA public key used for signing in hex format. |
| securityLevel | MLDSASecurityLevel | Yes | The security level used (44, 65, or 87). |
| amomessageHashunt | string | Yes | The message hash that was signed. |