class

Quartz::Signal::Tap::Store

Inherits JSON::Serializable < Reference < Object

Local TOFU keystore. Stored at: ENV["QUARTZ_TRUST_HOME"] (if set) / trust.json else ~/.config/quartz/taps/trust.json

Constructors

load(path : String = default_path) : Store
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

default_path
Source

Instance methods

[](url : String) : Tap
Source
[]?(url : String) : Tap | Nil
Source
save(path : String = Store.default_path)
Source
taps
Source
taps=(taps : Hash(String, Tap))
Source
tofu(url : String, pubkey : String) : Tap

Trust on first use. If the URL is unknown, pin the provided key. If the URL is known, the stored key must match or an error is raised.

Source
untrust(url : String) : Bool
Source