Versions in this module Expand all Collapse all v0 v0.2.4 Jun 18, 2020 v0.2.3 Mar 14, 2020 v0.2.2 Mar 12, 2020 v0.2.0 Nov 29, 2019 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) ConfigForAny() (*tls.Config, <-chan ic.PubKey) + func (i *Identity) ConfigForPeer(remote peer.ID) (*tls.Config, <-chan ic.PubKey) + func (i *Identity) ReusableConfigForAny() *tls.Config + func (i *Identity) ReusableConfigForPeer(remote peer.ID) *tls.Config + type Transport struct + func New(key ci.PrivKey) (*Transport, error) + func (t *Transport) SecureInbound(ctx context.Context, insecure net.Conn) (sec.SecureConn, error) + func (t *Transport) SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, error)