mirror of
https://github.com/vacp2p/dasy.git
synced 2026-01-08 06:23:51 -05:00
added comment
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user