function · Browser and Node
verifySignature
Checks a signature made outside the log against the key state it names, and whether it was anchored while that key was current.
@toip-tools/eventlogView sourceimport { verifySignature } from "@toip-tools/eventlog";
Declaration
verifySignature(input: {
bytes: Uint8Array;
sig: KeyRefSig;
kel: KelResult;
trails?: TrailResult[];
}, opts?: VerifyOptions): Promise<SignatureCheck>;
Parameters
inputrequired{ bytes: Uint8Array; sig: KeyRefSig; kel: KelResult; trails?: TrailResult[]; }optsoptionalVerifyOptionsDefault:
{}
Returns
Promise<SignatureCheck>