encoding

package
v0.2.30 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PrefixBlockHash                   = "B"
	PrefixOperationHash               = "o"
	PrefixOperationListHash           = "Lo"
	PrefixOperationListListHash       = "LLo"
	PrefixProtocolHash                = "P"
	PrefixContextHash                 = "Co"
	PrefixPublicKeyTZ1                = "tz1"
	PrefixPublicKeyTZ2                = "tz2"
	PrefixPublicKeyTZ3                = "tz3"
	PrefixPublicKeyKT1                = "KT1"
	PrefixScriptExpr                  = "expr"
	PrefixED25519Seed                 = "edsk"
	PrefixED25519PublicKey            = "edpk"
	PrefixSecp256k1SecretKey          = "spsk"
	PrefixP256SecretKey               = "p2sk"
	PrefixSecp256k1PublicKey          = "sppk"
	PrefixP256PublicKey               = "p2pk"
	PrefixSecp256k1Scalar             = "SSp"
	PrefixSecp256k1Element            = "GSp"
	PrefixED25519SecretKey            = "edsk"
	PrefixED25519Signature            = "edsig"
	PrefixSecp256k1Signature          = "spsig"
	PrefixP256Signature               = "p2sig"
	PrefixGenericSignature            = "sig"
	PrefixChainID                     = "Net"
	PrefixCryptoBoxPublicKeyHash      = "id"
	PrefixED25519EncryptedSeed        = "edesk"
	PrefixSecp256k1EncryptedSecretKey = "spesk"
	PrefixP256EncryptedSecretKey      = "p2esk"
	PrefixBakerHash                   = "SG1"
)

Bytes prefixes

Variables

This section is empty.

Functions

func DecodeBase58

func DecodeBase58(data string) ([]byte, error)

DecodeBase58 -

func DecodeBase58String

func DecodeBase58String(data string) (string, error)

DecodeBase58String -

func DecodeBase58ToString

func DecodeBase58ToString(data string) (string, error)

DecodeBase58ToString -

func EncodeBase58

func EncodeBase58(data, prefix []byte) (string, error)

EncodeBase58 -

func EncodeBase58String

func EncodeBase58String(data string, prefix []byte) (string, error)

EncodeBase58String -

Types

This section is empty.

Jump to

Keyboard shortcuts

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