Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Add a dialer identity certificate #46

Closed
wants to merge 1 commit into from

Conversation

aarshkshah1992
Copy link

// add an identity certificate
dr.DialerIdentityCertificate = new(pb.Message_DialerIdentityCertificate)
dr.DialerIdentityCertificate.PublicKey = as.cpk
sgn, err := as.sk.Sign(varint.ToUvarint(*req.Dial.Nonce))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we sign directly from as.dialer.Peerstore().PrivKey(as.dialer.ID()).Sign(...) rather than making a copy of the private key on the autonat object?
Keeping key material in one place seems preferable.

@Stebalien
Copy link
Member

Commenting in libp2p/go-libp2p#1480.

@Stebalien
Copy link
Member

This repo has now been deprecated. If we decide to pick this back up, we'll need to move it to https://github.com/libp2p/go-libp2p-autonat/.

@Stebalien Stebalien closed this May 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants