@certificatum/sig-util
v0.1.0
Published
Util for signing verifying data with secp256k1
Downloads
4
Readme
Sig Util
import {createSigner, createVerifier} from "@certificatum/sig-util"
const PRIVATE_KEY = "PRIVATE_KEY"
const PUBLIC_KEY = "PUBLIC_KEY"
const sign = createSigner(PRIVATE_KEY)
const verify = createVerifier()
const signature = sign("string")
verify(PUBLIC_KEY.toLowerCase(), "string", signature) // true