Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("trust:")
Error is the default error class
Functions ¶
This section is empty.
Types ¶
type CertDB ¶
type CertDB interface { Include(ctx context.Context, pi *identity.PeerIdentity) (certid int64, err error) LookupByCertID(ctx context.Context, id int64) (*identity.PeerIdentity, error) }
CertDB is a database of peer identities.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool implements different peer verifications.
func NewPool ¶
NewPool creates a new trust pool using kademlia to find certificates and with the specified list of trusted satellites.
func (*Pool) GetSignee ¶
GetSignee gets the corresponding signee for verifying signatures. It ignores passed in ctx cancellation to avoid miscaching between concurrent requests.
func (*Pool) VerifySatelliteID ¶
VerifySatelliteID checks whether id corresponds to a trusted satellite.
Click to show internal directories.
Click to hide internal directories.