IrohBeam.EndpointId (iroh_beam v0.2.0)

View Source

Public, shareable endpoint identity derived from a private key.

The canonical string form is the lowercase 64-character Iroh hex encoding. Parsing also accepts upstream-compatible base32 forms.

Summary

Types

t()

@type t() :: %IrohBeam.EndpointId{bytes: <<_::256>>, text: String.t()}

Functions

from_bytes(bytes)

@spec from_bytes(binary()) :: {:ok, t()} | {:error, IrohBeam.Error.t()}

parse(text)

@spec parse(String.t()) :: {:ok, t()} | {:error, IrohBeam.Error.t()}

parse!(text)

@spec parse!(String.t()) :: t()

short(endpoint_id)

@spec short(t()) :: String.t()

to_bytes(endpoint_id)

@spec to_bytes(t()) :: binary()