mobile: initial wrappers for mobile support
This commit is contained in:
@ -35,7 +35,7 @@ import (
|
||||
"github.com/ethereum/go-ethereum/crypto/secp256k1"
|
||||
)
|
||||
|
||||
const nodeIDBits = 512
|
||||
const NodeIDBits = 512
|
||||
|
||||
// Node represents a host on the network.
|
||||
// The fields of Node may not be modified.
|
||||
@ -209,7 +209,7 @@ func MustParseNode(rawurl string) *Node {
|
||||
|
||||
// NodeID is a unique identifier for each node.
|
||||
// The node identifier is a marshaled elliptic curve public key.
|
||||
type NodeID [nodeIDBits / 8]byte
|
||||
type NodeID [NodeIDBits / 8]byte
|
||||
|
||||
// NodeID prints as a long hexadecimal number.
|
||||
func (n NodeID) String() string {
|
||||
|
@ -748,7 +748,7 @@ type NodeInfo struct {
|
||||
Protocols map[string]interface{} `json:"protocols"`
|
||||
}
|
||||
|
||||
// Info gathers and returns a collection of metadata known about the host.
|
||||
// NodeInfo gathers and returns a collection of metadata known about the host.
|
||||
func (srv *Server) NodeInfo() *NodeInfo {
|
||||
node := srv.Self()
|
||||
|
||||
|
Reference in New Issue
Block a user