You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
I have a test failing in my code (below) and I think it shouldn't. Perhaps I'm missing something though - was wondering if this is a bug, or I have incorrect assumptions somewhere:
My guess is that one inlines the key and the other doesn't. It's imperative that we be consistent here. Otherwise, peers can end up with multiple identities and everything breaks in weird, hard to understand ways.
for my use case, I'm using the public key as an identifier (topic actually) in go-floodsub. therefore I rely on the peer.ID output from IDFromEd25519PublicKey to set the topic, and it's important that I can derive a key that can be used to verify a signature that was created with the corresponding private key, although this output doesn't look like a multiaddr - doesn't start with "Qm" etc.
While it would be nice if that public key string representation were consistent with the part of the multiaddr that indicates the identity, the important thing is being able to derive the public key. Currently, I can't do that with IDFromPublicKey or peer.IDFromString. I wonder if there is a hash function in the way between the multiaddr representation and a usable public key...
I have a test failing in my code (below) and I think it shouldn't. Perhaps I'm missing something though - was wondering if this is a bug, or I have incorrect assumptions somewhere:
p.s. I found that
IDFromPublicKey
works instead ofIDFromEd25519PublicKey
but the difference still seems strange...The text was updated successfully, but these errors were encountered: