plutarch
Safe HaskellNone
LanguageGHC2021

Plutarch.Builtin.Crypto

Synopsis

from V1

psha2_256 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using SHA-256.

psha3_256 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using SHA3-256.

pblake2b_224 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Blake2B-224.

Since: 1.9.0

pblake2b_256 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Blake2B-256.

pkeccak_256 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Keccak-256.

Since: 1.9.0

pripemd_160 :: forall (s :: S). Term s (PByteString :--> PByteString) Source #

Hash a PByteString using Ripemd_160.

Since: 1.9.0

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

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

from V2

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

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

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

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