Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add secp256k1 verify support #81

Merged
merged 6 commits into from
Sep 9, 2024
Merged

feat: add secp256k1 verify support #81

merged 6 commits into from
Sep 9, 2024

Conversation

mariocao
Copy link
Member

@mariocao mariocao commented Sep 9, 2024

Motivation

So that DR creators can verify data proxy signatures without having to implement the Secp256k1 verify logic.

);

try {
this.callResult = secp256k1Verify(message, signature, publicKey);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe true-myth is in this project. It would be better to do:

const result = trySync(() => secp...)

instead of doing try/catch

import { beforeEach, describe, expect, it, mock } from "bun:test";
import { readFile } from "node:fs/promises";
import { executeDrWasm } from "@seda/dev-tools";
import { Response } from "node-fetch";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not using this import right?

@mariocao mariocao merged commit 7922b4a into main Sep 9, 2024
1 check passed
@mariocao mariocao deleted the feat/secp256k1 branch September 9, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants