mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-17 07:48:21 +01:00
14 lines
314 B
TypeScript
14 lines
314 B
TypeScript
export function verifySignature(signature:any, publicKeyJson:any) {
|
|
let signatureValid;
|
|
|
|
try {
|
|
// Verify the signature
|
|
signatureValid = signature.verify(
|
|
publicKeyJson.publicKeyPem
|
|
);
|
|
} catch (error) {
|
|
console.log("Signature Verification error", error);
|
|
}
|
|
|
|
return signatureValid;
|
|
}
|