A Verifier is used to incrementally verify a signature. It can be obtained from a Signature, using the verifier() function.

Fields

h: Hash,
r: Curve.scalar.Scalar,
s: Curve.scalar.Scalar,
public_key: PublicKey,

Functions

fn update(self: *Verifier, data: []const u8) void

Add new content to the message to be verified.

fn verify(self: *Verifier) IdentityElementError || NonCanonicalError || SignatureVerificationError!void

Verify that the signature is valid for the entire message.