id

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 host id.

func FromBase58 added in v0.2.0

func FromBase58(encoded string) ID

FromBase58 returns decoded host id.

func NewID

func NewID() (ID, error)

NewID returns random host id.

func (ID) Bytes added in v0.2.0

func (id ID) Bytes() []byte

Bytes returns a raw key.

func (ID) Equal added in v0.2.0

func (id ID) Equal(other []byte) bool

Equal checks if id is equal ot another.

func (ID) String added in v0.2.0

func (id ID) String() string

String is a base58-encoded string representation of host public key.

Jump to

Keyboard shortcuts

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