View Source ecies_geth (ecies v1.1.0)
Summary
Functions
Default params compatible with ethereum geth ECIES implementation.
Equivalent to maps:merge(default_params(), Params).
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.
Usingsecp256k1
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(Params :: map()) -> ecies:ecies_params().
Equivalent to maps:merge(default_params(), Params).
Utility function for overriding default geth compatible params-spec params_from_curve(secp256k1 | secp256r1 | secp384r1 | secp521r1) -> ecies:ecies_params().