convert

package
v0.0.0-...-9e21bb5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BYTES_TO_TRITS = []int{} /* 1215 elements not displayed */
	THREE          = big.NewInt(3)
	ONE            = big.NewInt(1)
)
View Source
var (
	TRYTES = "NOPQRSTUVWXYZ9ABCDEFGHIJKLM"
)

Functions

func BytesToTrits

func BytesToTrits(bytes []byte) []int

func BytesToTrytes

func BytesToTrytes(bytes []byte) string

func CharCodeAt

func CharCodeAt(s string, n int) rune

func IntToTrits

func IntToTrits(value *big.Int, padding int) []int

func IsTrytes

func IsTrytes(trytes string, length int) bool

func TritsToBytes

func TritsToBytes(trits []int) []byte

func TritsToInt

func TritsToInt(trits []int) *big.Int

func TritsToTrytes

func TritsToTrytes(trits []int) string

func TrytesToBytes

func TrytesToBytes(trytes string) []byte

func TrytesToTrits

func TrytesToTrits(trytes string) (trits []int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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