id

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID []byte

ID is node id.

func NewID

func NewID() (ID, error)

NewID returns random node id.

func NewIDs

func NewIDs(num int) ([]ID, error)

NewIDs returns given number of random node ids.

func (ID) Equal

func (id ID) Equal(other ID) bool

Equal checks if id is equal to another.

func (ID) String

func (id ID) String() string

String is a base58-encoded string representation of node id.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL