mirror of
https://github.com/status-im/status-go.git
synced 2025-02-09 21:35:36 +00:00
14 lines
218 B
Go
14 lines
218 B
Go
package types
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// EnodeID is a unique identifier for each node.
|
|
type EnodeID [32]byte
|
|
|
|
// ID prints as a long hexadecimal number.
|
|
func (n EnodeID) String() string {
|
|
return fmt.Sprintf("%x", n[:])
|
|
}
|