mirror of https://github.com/vacp2p/dasy.git
added comment
This commit is contained in:
parent
01e7ad18db
commit
5c7f0ad55b
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/vacp2p/mvds/state"
|
||||
)
|
||||
|
||||
// PublicKeyToPeerID turns an ECDSA Public Key to an mvds PeerID.
|
||||
func PublicKeyToPeerID(k ecdsa.PublicKey) state.PeerID {
|
||||
var p state.PeerID
|
||||
copy(p[:], crypto.FromECDSAPub(&k))
|
||||
|
|
Loading…
Reference in New Issue