@jmcanterafonseca-iota/anchoring-channels
Version:
Powered by IOTA Streams, Anchor Channels is an easy to be used library that allows to anchor messages to the Tangle.
24 lines (23 loc) • 720 B
TypeScript
import { ISigningRequest } from "../models/ISigningRequest";
import { 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;
}