View Source Baobab.Entry.Validator (Baobab v0.3.3)
Validation of Baobab.Entry
structs
Link to this section Summary
Functions
Validate the backlink
field of a Baobab.Entry
Validate a Baobab.Entry
without full certificate pool verification.
Validate the lipmaalink
field of a Baobab.Entry
Validate the payload_hash
field of a Baobab.Entry
Validate the sig
field of a Baobab.Entry
Validate a Baobab.Entry
struct
Link to this section Functions
@spec valid_backlink?(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: boolean()
Validate the backlink
field of a Baobab.Entry
@spec valid_entry?(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: boolean()
Validate a Baobab.Entry
without full certificate pool verification.
Confirms:
- Signature
- Payload hash
- Backlink
- Lipmaalink
@spec valid_lipmaalink?(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: boolean()
Validate the lipmaalink
field of a Baobab.Entry
@spec valid_payload_hash?(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: boolean()
Validate the payload_hash
field of a Baobab.Entry
@spec valid_sig?(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: boolean()
Validate the sig
field of a Baobab.Entry
@spec validate(%Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() }) :: %Baobab.Entry{ author: term(), backlink: term(), lipmaalink: term(), log_id: term(), payload: term(), payload_hash: term(), seqnum: term(), sig: term(), size: term(), tag: term() } | :error
Validate a Baobab.Entry
struct
Includes validation of its available certificate pool