encoding

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID        byte = 0x00
	Protobuf  byte = 0x50
	AES256CBC byte = 0x2e // TODO: Not merged yet to multihash
)
View Source
const (
	Ethereum  = "ethereum"
	SECP256K1 = "secp256k1"
)
View Source
const (
	Kovan   = "kovan"
	Rinkeby = "rinkeby"
	Ropsten = "ropsten"
)

Ethereum

View Source
const Mainnet = "mainnet"

Variables

This section is empty.

Functions

func DataPrefix

func DataPrefix() []byte

DataPrefix used before

func EthereumNetworks

func EthereumNetworks() []string

func FromHex

func FromHex(s string) []byte

FromHex returns the bytes represented by the hexadecimal string s. s may be prefixed with "0x".

func Hex2Bytes

func Hex2Bytes(str string) []byte

Hex2Bytes returns the bytes represented by the hexadecimal string str.

func HexToAddress

func HexToAddress(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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