fix dozens of errors so this new release may now actually work.

This commit is contained in:
fiatjaf
2021-01-09 22:00:35 -03:00
parent 44edef63f9
commit 65e6f22a00
5 changed files with 23 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import * as secp256k1 from 'noble-secp256k1'
import secp256k1 from 'noble-secp256k1'
export const makeRandom32 = () => secp256k1.utils.generateRandomPrivateKey()
export const makeRandom32 = () => secp256k1.utils.randomPrivateKey()
export const sha256 = m => secp256k1.utils.sha256(Uint8Array.from(m))
export const getPublicKey = privateKey =>
secp256k1.schnorr.getPublicKey(privateKey)