Skip to content

Commit

Permalink
Add secp js
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Aug 8, 2024
1 parent 097564b commit 2856db9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/lib/javascript/secp256k1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import secp256k1 from 'secp256k1';

export function secp256k1_verify(msg, sig, pubkey) {
return secp256k1.verify(msg, sig, pubkey);
}

class Secp256k1 {
constructor() {
this.secp256k1 = secp256k1;
}
}

const msg = new Uint8Array([1, 2, 3]);

const sig = new Uint8Array([4, 5, 6]);

const pubkey = new Uint8Array([7, 8, 9]);

export default Secp256k1;

0 comments on commit 2856db9

Please sign in to comment.