@the-hashgraph-group-ag/signer-internal-ed25519 / InternalEd25519Signer
Class: InternalEd25519Signer
An internal implementation of the Signer interface. This implementation uses the Ed25519 algorithm from the tweetnacl library.
This signer support cryptosuite: eddsa-jcs-2022.
Usage:
const signer = new InternalEd25519Signer(privateKey);
const securedDocument = await signer.sign(inputDocument, proofOptions);
Constructors
Methods
sign()
sign<
InputDocument,ProofOptions>(inputDocument,proofOptions):Promise<SecuredDataDocument<InputDocument>>
Sign a message or any other data.
Type Parameters
======= InputDocument
InputDocument extends InputDocument
======= ProofOptions
ProofOptions extends EdDSAProofOptions