encoding

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixBlockHash                   = "B"
	PrefixOperationHash               = "o"
	PrefixOperationListHash           = "Lo"
	PrefixOperationListListHash       = "LLo"
	PrefixProtocolHash                = "P"
	PrefixContextHash                 = "Co"
	PrefixPublicKeyTZ1                = "tz1"
	PrefixPublicKeyTZ2                = "tz2"
	PrefixPublicKeyTZ3                = "tz3"
	PrefixPublicKeyTZ4                = "tz4"
	PrefixPublicKeyKT1                = "KT1"
	PrefixPublicKeyTxr1               = "txr1"
	PrefixOriginatedSmartRollup       = "sr1"
	PrefixRollupInboxHash             = "txi"
	PrefixRollupMessageHash           = "txm"
	PrefixRollupCommitmentHash        = "txc"
	PrefixRollupMessageResultHash     = "txmr"
	PrefixRollupMessageResultListHash = "txM"
	PrefixRollupWithdrawListHash      = "txw"
	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"
	PrefixSmartRollupCommitment       = "src1"
	PrefixSmartRollupState            = "srs1"
	PrefixSmartRollupInbox            = "srib1"
	PrefixSmartRollupMerkelizedTree   = "srib2"
)

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 -

func MustDecodeBase58

func MustDecodeBase58(data string) []byte

MustDecodeBase58 -

func MustEncodeBase58

func MustEncodeBase58(data, prefix []byte) string

MustEncodeBase58 -

func MustEncodeOperationHash

func MustEncodeOperationHash(data []byte) string

MustEncodeOperationHash -

Types

This section is empty.

Jump to

Keyboard shortcuts

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