-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ECC PeerIds messed up again! #6133
Comments
I would like to hear the further policy on what will be happening with PeerIds based on ECC keys. |
@reardenlife please see libp2p/specs#138 it explains the context behind the changes. |
The document you provided states that:
So ... now the latest masters are inlining keys? EDIT: Also, in addition:
It doesn't state anywhere that v0.4.20+ will embed the keys. |
The 0.4.19 release reintroduced inlining. Sorry for these changes but as you can see it is quite a complex issue. |
@Kubuxu , Hm. I was wondering if it is possible to introduce some HTTP-RPC function (to IPFS) to obtain a PeerId by feeding it a public key, so in this case I will not have any of the code in my app that is a subject to change. Should I open a pull request perhaps? |
cc @Stebalien |
Commented in #6152. We're trying to find a resolution to this issue that makes everybody happy but it's going to cause problems for someone regardless of what we do. |
(closing to avoid duplicating with #138). |
On the version v0.4.19-dev, the peerids generated from ECC keys were looking like that:
[root@v48807 dompoc]# ipfs key list -l QmQBojsRJJrwvqDdbmWbmbZ7GCTnhHmzri5DhEqLP2zVXq self QmafEdQrhntRYzKu3V2Mn4Rd21Px9Hpfgbw6YBvCNJyDJH addr1 QmVHUFuEj1v8YvWKS3p5NHNdZy66Ds4bLevt8KrbPPgWHh addr2 QmafEdQrhntRYzKu3V2Mn4Rd21Px9Hpfgbw6YBvCNJyDJH mykey
They were the hashes of public keys.
Now on v0.4.20-dev they look like they were looking on pre-v0.4.18, like instead of the hash of public key, the public key is embedded:
This is insane! The behaviour switches back and forth. How I am suppose to develop the software in such circumstances?
Can anyone explain to me what is going on?
The text was updated successfully, but these errors were encountered: