Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add codecs for ed25519 public keys and signatures with different hash types #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexmat2on
Copy link

Closes #139

@yusefnapora
Copy link

@Stebalien is this all good?

@Stebalien
Copy link
Member

🤔

@Stebalien
Copy link
Member

@alexmat2on libp2p/specs#217?

@@ -70,6 +70,7 @@ ipfs-ns, namespace, 0xe3, IPFS path
swarm-ns, namespace, 0xe4, Swarm path
ipns-ns, namespace, 0xe5, IPNS path
ed25519-pub, key, 0xed, Ed25519 public key
ed25519-sig, signature, 0xef, Ed25519 signature
Copy link

Choose a reason for hiding this comment

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

Why not make ed25519-{pub,sig} mean using Ed25519-SHA2 (since that's what effectively all Ed25519 users use), and then add only ed25519-{pub,sig}-sha3? It seems a bit odd to me to have two codec entries which are ambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ed25519-sha2 signature code
4 participants