View Source ecies_geth (ecies v1.0.0)
Module provides specific params defaults and overrides compatible with ethereum geth ECIES implementation.
Summary
Functions
Default params compatible with ethereum geth ECIES implementation.
Returns params compatible with ethereum geth ECIES implementation for given elliptic curve.
Functions
-spec default_params() -> ecies:ecies_params().
Default params compatible with ethereum geth ECIES implementation.
Using secp256k1
elliptic curve with NIST SP 800-56 Concatenation Key Derivation Function, AES-128 CTR encryption and HMAC-SHA256 with 128 bits output authentication tag. Additionally it provides callback for geth specific key derivation function, and ensures usage of random IV which is embedded in cipher data.
-spec params_from_curve(secp256k1 | secp256r1 | secp384r1 | secp521r1) -> ecies:ecies_params().
Returns params compatible with ethereum geth ECIES implementation for given elliptic curve.