Versions in this module Expand all Collapse all v0 v0.0.2 Jan 23, 2025 v0.0.1 Jan 22, 2025 Changes in this version + const PeerIDAuthScheme + const ProtocolID + type ClientPeerIDAuth struct + PrivKey crypto.PrivKey + TokenTTL time.Duration + func (a *ClientPeerIDAuth) AuthenticatedDo(client *http.Client, req *http.Request) (peer.ID, *http.Response, error) + type ServerPeerIDAuth struct + HmacKey []byte + Next func(peer peer.ID, w http.ResponseWriter, r *http.Request) + NoTLS bool + PrivKey crypto.PrivKey + TokenTTL time.Duration + ValidHostnameFn func(hostname string) bool + func (a *ServerPeerIDAuth) ServeHTTP(w http.ResponseWriter, r *http.Request)