View Source BitcoinLib.Crypto.Secp256k1 (BitcoinLib v0.1.3)

Elliptic curve cryptography

Based on https://hexdocs.pm/curvy/Curvy.html

Link to this section Summary

Functions

Add two keys on the elliptic curve using Jacobian Point mathematics

Link to this section Functions

Add two keys on the elliptic curve using Jacobian Point mathematics

examples

Examples

iex> key1 = 0x2E65A9C40338B8D07D72CD82BF3C9DDD0375F362863BC0808E6AD194F19F5EBA0 ...> key2 = 0x2702DED1CCA9816FA1A94787FFC6F3ACE62CD3B63164F76D227D0935A33EE48C3 ...> BitcoinLib.Crypto.Secp256k1.add_keys(key1, key2) 0x2FC5BA55A539899D67EE66E99EE50AB59DCCBB122025D18C5EB9446D380A9EC0A