View Source BitcoinLib.Key.Public (BitcoinLib v0.1.2)
Bitcoin public key management module
Link to this section Summary
Functions
Derives a public key from a private key in both uncompressed and compressed format
Link to this section Functions
Derives a public key from a private key in both uncompressed and compressed format
Based on https://learnmeabitcoin.com/technical/public-key
examples
Examples
iex> 0x0a8d286b11b98f6cb2585b627ff44d12059560acd430dcfa1260ef2bd9569373 ...> |> BitcoinLib.Key.Public.from_private_key {
0x040f69ef8f2feb09b29393eef514761f22636b90d8e4d3f2138b2373bd37523053002119e16b613619691f760eadd486315fc9e36491c7adb76998d1b903b3dd12,
0x020f69ef8f2feb09b29393eef514761f22636b90d8e4d3f2138b2373bd37523053
}