View Source Baobab.ClumpMeta (Baobab v0.15.1)

Functions for interacting with clump metadata May be useful between consumers to communicate intent

Link to this section Summary

Functions

Block the given log author on the supplied clump_id

Returns a boolean indicating whether a given author is blocked on the supplied clump

Lists currently blocked authors on the supplied clump_id

Unblock the given log author on the supplied clump_id

Link to this section Functions

Link to this function

block_author(author, clump_id \\ "default")

View Source
@spec block_author(binary(), binary()) :: :ok | {:error, String.t()}

Block the given log author on the supplied clump_id

Authors should be supplied as 32 byte-raw or 43-byte base62-encoded values.

May not be applied to member of local identities

Link to this function

blocked_author?(author, clump_id \\ "default")

View Source

Returns a boolean indicating whether a given author is blocked on the supplied clump

Link to this function

list_blocked_authors(clump_id \\ "default")

View Source
@spec list_blocked_authors(binary()) :: [binary()]

Lists currently blocked authors on the supplied clump_id

Results are returned as the base62-encoded identity

Link to this function

unblock_author(author, clump_id \\ "default")

View Source
@spec unblock_author(binary(), binary()) :: :ok | {:error, String.t()}

Unblock the given log author on the supplied clump_id

Authors should be supplied as 32 byte-raw or 43-byte base6-encoded values.