Module

Contract.Crypto.Secp256k1.Schnorr

A module that implements crypto primitives that match CIP-49 SECP256k1 Schnorr spec.

#verifySchnorrSecp256k1Signature

verifySchnorrSecp256k1Signature :: SchnorrPublicKey -> ByteArray -> SchnorrSignature -> Aff Boolean

Verify arbitrary binary messages signed using the Schnorr signature scheme on the Secp256k1 curve. Matches CIP-49 spec: https://github.com/cardano-foundation/CIPs/blob/master/CIP-0049/README.md

#signSchnorrSecp256k1

signSchnorrSecp256k1 :: Secp256k1PrivateKey -> ByteArray -> Aff SchnorrSignature

Sign a message using Schnorr signature scheme.

#mkSchnorrPublicKey

mkSchnorrPublicKey :: ByteArray -> Maybe SchnorrPublicKey

Construct a public key from its byte representation.

Re-exports from Noble.Secp256k1.Schnorr

Modules