We can't use PeerIds as map keys because map keys are
compared using same-value-zero equality, so this is just
a map that stringifies the PeerIds before storing them.
PeerIds cache stringified versions of themselves so this
should be a cheap operation.
We can't use PeerIds as map keys because map keys are compared using same-value-zero equality, so this is just a map that stringifies the PeerIds before storing them.
PeerIds cache stringified versions of themselves so this should be a cheap operation.
Example