module Plutarch.Builtin.Crypto (
psha2_256,
psha3_256,
pblake2b_224,
pblake2b_256,
pkeccak_256,
pripemd_160,
pverifySignature,
pverifyEd25519Signature,
pverifyEcdsaSecp256k1Signature,
pverifySchnorrSecp256k1Signature,
) where
import Plutarch.Builtin.Bool (PBool)
import Plutarch.Builtin.ByteString (PByteString)
import Plutarch.Internal.Term (Term, (:-->))
import Plutarch.Unsafe (punsafeBuiltin)
import PlutusCore qualified as PLC
psha2_256 :: Term s (PByteString :--> PByteString)
psha2_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
psha2_256 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Sha2_256
psha3_256 :: Term s (PByteString :--> PByteString)
psha3_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
psha3_256 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Sha3_256
pblake2b_224 :: Term s (PByteString :--> PByteString)
pblake2b_224 :: forall (s :: S). Term s (PByteString :--> PByteString)
pblake2b_224 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Blake2b_224
pblake2b_256 :: Term s (PByteString :--> PByteString)
pblake2b_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
pblake2b_256 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Blake2b_256
pkeccak_256 :: Term s (PByteString :--> PByteString)
pkeccak_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
pkeccak_256 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Keccak_256
pripemd_160 :: Term s (PByteString :--> PByteString)
pripemd_160 :: forall (s :: S). Term s (PByteString :--> PByteString)
pripemd_160 = DefaultFun -> Term s (PByteString :--> PByteString)
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Ripemd_160
pverifySignature :: Term s (PByteString :--> PByteString :--> PByteString :--> PBool)
pverifySignature :: forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifySignature = Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifyEd25519Signature
{-# DEPRECATED pverifySignature "use one of the Ed25519, Schnorr- or ECDSA Secp256k1 signature verification functions" #-}
pverifyEd25519Signature :: Term s (PByteString :--> PByteString :--> PByteString :--> PBool)
pverifyEd25519Signature :: forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifyEd25519Signature = DefaultFun
-> Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.VerifyEd25519Signature
pverifyEcdsaSecp256k1Signature :: Term s (PByteString :--> PByteString :--> PByteString :--> PBool)
pverifyEcdsaSecp256k1Signature :: forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifyEcdsaSecp256k1Signature = DefaultFun
-> Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.VerifyEcdsaSecp256k1Signature
pverifySchnorrSecp256k1Signature :: Term s (PByteString :--> PByteString :--> PByteString :--> PBool)
pverifySchnorrSecp256k1Signature :: forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifySchnorrSecp256k1Signature = DefaultFun
-> Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.VerifySchnorrSecp256k1Signature