address

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeByProtocol

func DecodeByProtocol(in, protocol string) ([]byte, error)

DecodeByProtocol returns the raw `[]byte` from the supplied address.

func EncodeByProtocol

func EncodeByProtocol(in []byte, protocol string) (encoded, encodingKind string, err error)

EncodeByProtocol takes an address as `[]byte` then selects the relevant encoding method to encode it as string.

func FromPublicKey added in v0.0.38

func FromPublicKey(pubKey crypto.PublicKey, protocol, network string) (address []byte, err error)

FromPublicKey creates an address from public key.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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