View Source BitcoinLib.Key.PublicHash (BitcoinLib v0.1.3)

Bitcoin Public Key Hash module

Link to this section Summary

Functions

Extract a public key hash from a bitcoin public key

Link to this section Functions

Link to this function

from_public_key(public_key)

View Source
@spec from_public_key(integer()) :: integer()

Extract a public key hash from a bitcoin public key

Inspired by https://learnmeabitcoin.com/technical/public-key-hash

examples

Examples

iex> 0x02b4632d08485ff1df2db55b9dafd23347d1c47a457072a1e87be26896549a8737 ...> |> BitcoinLib.Key.PublicHash.from_public_key() 0x93ce48570b55c42c2af816aeaba06cfee1224fae