@tangle-js/ld-proofs
Version:
Linked Data Proofs on the Tangle. Powered by IOTA Identity & IOTA Streams
21 lines (20 loc) • 717 B
TypeScript
import type { ISigningRequest } from "../models/ISigningRequest";
import type { ISigningResult } from "../models/ISigningResult";
export default class SigningService {
/**
* Signs the message using the identity and method specified.
*
* It uses the Ed25519 as the signature algorithm and the hash algorithm passed as parameter.
*
* @param request Signing Request.
* @returns The signature details.
*/
static sign(request: ISigningRequest): Promise<ISigningResult>;
/**
* Calculates the signature.
* @param privateKey Private key.
* @param message Message to be signed.
* @returns The signature value.
*/
private static calculateSignature;
}