| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Plutarch.Builtin.Crypto
Synopsis
- psha2_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
- psha3_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
- pblake2b_224 :: forall (s :: S). Term s (PByteString :--> PByteString)
- pblake2b_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
- pkeccak_256 :: forall (s :: S). Term s (PByteString :--> PByteString)
- pripemd_160 :: forall (s :: S). Term s (PByteString :--> PByteString)
- pverifyEd25519Signature :: forall (s :: S). Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
- pverifyEcdsaSecp256k1Signature :: forall (s :: S). Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
- pverifySchnorrSecp256k1Signature :: forall (s :: S). Term s (PByteString :--> (PByteString :--> (PByteString :--> PBool)))
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