mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
are u kidding
This commit is contained in:
@@ -4,9 +4,9 @@ export function verifySignature(
|
||||
{ publicKey, signature, timestamp, body }: VerifySignatureOptions,
|
||||
): { isValid: boolean; body: string } {
|
||||
const isValid = verify(
|
||||
new TextEncoder().encode(timestamp + body),
|
||||
hexToUint8Array(signature),
|
||||
hexToUint8Array(publicKey),
|
||||
hexToUint8Array(signature),
|
||||
new TextEncoder().encode(timestamp + body),
|
||||
);
|
||||
|
||||
return { isValid, body };
|
||||
|
||||
Reference in New Issue
Block a user