CPub.Signify (CPub v0.3.0) View Source

RDF Signify (http://purl.org/signify/spec).

Signatures for content-addressed content using an RDF vocabulary.

Link to this section Summary

Functions

Signs the RDF.IRI message with the SecretKey sk and returns the signature as a finalized RDF.FragmentGraph.

Verify signature in the RDF.FragmentGraph fg.

Link to this section Types

Specs

t() :: %{id: String.t(), message: String.t(), public_key: String.t()}

Link to this section Functions

Link to this function

sign(read_capability, sk)

View Source

Signs the RDF.IRI message with the SecretKey sk and returns the signature as a finalized RDF.FragmentGraph.

Specs

verify(RDF.FragmentGraph.t()) :: {:ok, t()} | {:error, atom()}

Verify signature in the RDF.FragmentGraph fg.