Documentation ¶
Index ¶
- Variables
- type CertDB
- type Pool
- func (pool *Pool) GetSatellites(ctx context.Context) (satellites []storj.NodeID)
- func (pool *Pool) GetSignee(ctx context.Context, id storj.NodeID) (_ signing.Signee, err error)
- func (pool *Pool) VerifySatelliteID(ctx context.Context, id storj.NodeID) (err error)
- func (pool *Pool) VerifyUplinkID(ctx context.Context, id storj.NodeID) (err error)
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) GetSatellites ¶ added in v0.14.0
GetSatellites returns a slice containing all 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.