plutarch-1.9.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Plutarch.Builtin.Crypto

Synopsis

from V1

pblake2b_224 :: Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Blake2B-224.

Since: 1.9.0

pkeccak_256 :: Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Keccak-256.

Since: 1.9.0

pripemd_160 :: Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Ripemd_160.

Since: 1.9.0

pverifySignature :: Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool))) Source #

Deprecated: use one of the Ed25519, Schnorr- or ECDSA Secp256k1 signature verification functions

Verify the signature against the public key and message.

pverifyEd25519Signature :: Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool))) Source #

Verify an ED25519 signature arguments are in this order: pubkey, message, signature

from V2

pverifyEcdsaSecp256k1Signature :: Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool))) Source #

Verify an ECDSA SECP256k1 signature arguments are in this order: pubkey, message, signature

pverifySchnorrSecp256k1Signature :: Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool))) Source #

Verify a Schnorr SECP256k1 signature arguments are in this order: pubkey, message, signature