goTezos: github.com/DefinitelyNotAGoat/goTezos/crypto Index | Files

package crypto

import "github.com/DefinitelyNotAGoat/goTezos/crypto"

Index

Package Files

crypto.go

func B58cdecode Uses

func B58cdecode(payload string, prefix []byte) []byte

func B58cencode Uses

func B58cencode(payload []byte, prefix Prefix) string

B58cencode encodes a byte array into base58 with prefix

func Decode Uses

func Decode(encoded string) ([]byte, error)

func Encode Uses

func Encode(dataBytes []byte) string

func RoundPlus Uses

func RoundPlus(f float64, places int) float64

Helper Functions to round float64

type Prefix Uses

type Prefix []byte
var (
    // For (de)constructing addresses
    Prefix_tz1       Prefix = []byte{6, 161, 159}
    Prefix_edsk      Prefix = []byte{43, 246, 78, 7}
    Prefix_edsk2     Prefix = []byte{13, 15, 58, 7}
    Prefix_edpk      Prefix = []byte{13, 15, 37, 217}
    Prefix_edesk     Prefix = []byte{7, 90, 60, 179, 41}
    Prefix_edsig     Prefix = []byte{9, 245, 205, 134, 18}
    Prefix_watermark Prefix = []byte{3}
)

Package crypto imports 6 packages (graph). Updated 2019-08-27. Refresh now. Tools for package owners.