ddn.api.crypto.signature
Digital Signature API.
Types 2
interfaceSigner
Interface for digital signatures.
Methods
void initialize(PrivateKey key)Initializes the signer with the private key.void update(const(ubyte)[] input)Updates the data to be signed.ubyte[] sign()Generates the signature.interfaceVerifier
Interface for signature verification.
Methods
void initialize(PublicKey key)Initializes the verifier with the public key.void update(const(ubyte)[] input)Updates the data to be verified.bool verify(const(ubyte)[] signature)Verifies the signature.