Crate trust_graph

Source

Modules§

certificate_serde

Structs§

Auth
Represents who give a trust
Certificate
Chain of trusts started from self-signed root trust.
PublicKeyHashable
Wrapper to use PublicKey in HashMap
Revocation
“A document” that cancels trust created before. TODO delete pk from Revoke (it is already in a trust node)
Trust
One element in chain of trust in a certificate. TODO delete pk from Trust (it is already in a trust node)
TrustGraph
Graph to efficiently calculate weights of certificates and get chains of certificates. TODO serialization/deserialization TODO export a certificate from graph

Enums§

CertificateError
TrustError
TrustGraphError
TrustRelation

Statics§

MAX_WEIGHT_FACTOR

Traits§

Storage
StorageError

Functions§

current_time

Type Aliases§

WeightFactor
for simplicity, we store n where Weight = 1/n^2