View Source MyspaceObject.PublicKey (Myspace Object v0.1.0-alpha.2)

An object that can be stored in a Myspace.

Receives message from IPFS and conserves it state as a dag and can state it config to the Myspace.

Link to this section Summary

Types

t()

This is the way DAG are represented in the IPLD.

Functions

Returns the IPLD link to the object.

Link to this section Types

@type t() :: %MyspaceObject.PublicKey{cid: binary() | nil, pem: binary()}

This is the way DAG are represented in the IPLD.

Link to this section Functions

@spec new(binary(), binary() | nil) :: {:ok, t()}
@spec new!(binary(), binary() | nil) :: t()

Returns the IPLD link to the object.