address

package
v0.0.0-...-8071ca5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: GPL-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

View Source
const (
	AddrPrefix = "BC"
	PrefixLen  = 2
	AddrIDLen  = 40
)

Variables

This section is empty.

Functions

func ToPKString

func ToPKString(key []byte) string

Types

type ChatAddress

type ChatAddress string

func ToAddress

func ToAddress(key []byte) ChatAddress

func (ChatAddress) GetBytes

func (addr ChatAddress) GetBytes() []byte

func (ChatAddress) IsValid

func (addr ChatAddress) IsValid() bool

func (ChatAddress) String

func (addr ChatAddress) String() string

func (ChatAddress) ToPubKey

func (addr ChatAddress) ToPubKey() ed25519.PublicKey

func (ChatAddress) TrimPrefix

func (addr ChatAddress) TrimPrefix() string

Jump to

Keyboard shortcuts

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