id

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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

func FromBase58(encoded string) ID

FromBase58 returns decoded host id.

func NewID

func NewID() (ID, error)

NewID returns random host id.

func (ID) Bytes

func (id ID) Bytes() []byte

Bytes returns a raw key.

func (ID) Equal

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

Equal checks if id is equal ot another.

func (ID) String

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