View Source ActivityPub.Safety.Keys (bonfire_umbrella v0.9.10-cooperation-beta.62)

Handles RSA keys for Actors & helpers for HTTP signatures

Summary

Functions

Link to this function

add_public_key(actor, generate_if_missing \\ true)

View Source
Link to this function

ensure_keys_present(actor)

View Source

Checks if an actor struct has a non-nil keys field and generates a PEM if it doesn't.

Link to this function

fetch_public_key_for_ap_id(ap_id)

View Source

Fetches the remote public key for given actor AP ID.

Link to this function

get_public_key_for_ap_id(ap_id)

View Source

Get the public key for given actor AP ID.

Link to this function

key_id_to_actor_id(key_id)

View Source
Link to this function

maybe_add_fetch_signature_headers(headers, id, date \\ nil)

View Source
Link to this function

public_key_decode(public_key_pem)

View Source
Link to this function

public_key_from_data(actor)

View Source