Skip to content

Commit

Permalink
fix: Use verifyAsync (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Jul 19, 2023
1 parent c0f8a5e commit 17f1537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
InteractionType,
} from "./types.ts";

import { verify } from "ed25519";
import { verifyAsync } from "ed25519";

const HEX_SEGMENT = /.{1,2}/gu;

Expand All @@ -32,7 +32,7 @@ const verifyRequest = async (

const body = await request.text();
if (
verify(
await verifyAsync(
fromHexString(signature),
new TextEncoder().encode(timestamp + body),
fromHexString(publicKey),
Expand Down

0 comments on commit 17f1537

Please sign in to comment.