module Plutarch.Crypto (
psha2_256,
psha3_256,
pblake2b_256,
pverifySignature,
pverifyEd25519Signature,
pverifyEcdsaSecp256k1Signature,
pverifySchnorrSecp256k1Signature,
) where
import Plutarch (
Term,
type (:-->),
)
import Plutarch.Unsafe (punsafeBuiltin)
import Plutarch.Bool (PBool)
import Plutarch.ByteString (PByteString)
import PlutusCore qualified as PLC
psha2_256 :: Term s (PByteString :--> PByteString)
psha2_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
psha2_256 = 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 = forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Sha3_256
pblake2b_256 :: Term s (PByteString :--> PByteString)
pblake2b_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
pblake2b_256 = forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.Blake2b_256
pverifySignature :: Term s (PByteString :--> PByteString :--> PByteString :--> PBool)
pverifySignature :: forall (s :: S).
Term
s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
pverifySignature = 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 = 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 = 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 = forall (s :: S) (a :: PType). DefaultFun -> Term s a
punsafeBuiltin DefaultFun
PLC.VerifySchnorrSecp256k1Signature