Versions in this module Expand all Collapse all v0 v0.20.5 Aug 11, 2022 v0.20.4 Jun 28, 2022 Changes in this version + const ID + func PubKeyFromCertChain(chain []*x509.Certificate) (ic.PubKey, error) + type Identity struct + func NewIdentity(privKey ic.PrivKey) (*Identity, error) + func (i *Identity) ConfigForPeer(remote peer.ID) (*tls.Config, <-chan ic.PubKey) + type Transport struct + func New(key ci.PrivKey) (*Transport, error) + func (t *Transport) SecureInbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, error) + func (t *Transport) SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, error)