Cryptography - OpenZeppelin Docs
This collection of libraries provides simple and safe ways to use different cryptographic primitives. Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address. recover(hash, signature) toEthSignedMessageHash(hash) Returns the address that signed a hashed message (hash) with signature. This address can then be used for verification purposes. The ecrecover EVM opcode allows for malleable (non-unique) signatures: this function rejects them by requiring the s value to be in the lower half order, and the v value to be either 27 or 28. Returns an Ethereum Signed Message, created from a hash. This replicates the behavior of the eth_sign JSON-RPC method. See recover. These functions deal with verification of Merkle trees (hash trees), verify(proof, root, leaf) Returns true if a leaf can be proved to be a part of a Merkle tree defined by root. For this, a proof must be prov
This collection of libraries provides simple and safe ways to use different cryptographic primitives. Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address. recover(hash, signature) toEthSignedMessageHash(hash) Returns the address that signed a hashed message (hash) with signature. This address can then be used for verification purposes. The ecrecover EVM opcode allows for malleable (non-unique) signatures: this function rejects them by requiring the s value to be in th
Explore this link on the map →