View Source Nostr.Formatting (Nostr v0.1.3)

Converting computer stuff into other stuff humans can understand

Link to this section Summary

Functions

Converts a binary into a hex formatted string

Link to this section Functions

@spec to_hex(binary()) :: String.t()

Converts a binary into a hex formatted string

examples

Examples

iex> <<0xab6a8f1d9e2b0333dff8e370ed6fdfe20b2e8008e045efb3fb3298c22f7569da::256>>
...> |> Nostr.Formatting.to_hex()
"ab6a8f1d9e2b0333dff8e370ed6fdfe20b2e8008e045efb3fb3298c22f7569da"