mcpacked

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown     = Code(0)
	Git         = Code(0x69)
	DagProtobuf = Code(0x70)
	DagCBOR     = Code(0x71)
	Raw         = Code(0x55)
	RLP         = Code(0x60)
	Bencode     = Code(0x63)

	Multicodec = Code(0x30)
	Multihash  = Code(0x31)
	Multiaddr  = Code(0x32)
	Multibase  = Code(0x33)

	StellarBlock = Code(0xd0)
	StellarTx    = Code(0xd1)

	TorrentInfo = Code(0x7b)
	TorrentFile = Code(0x7c)

	EthBlock           = Code(0x90)
	EthBlockList       = Code(0x91)
	EthTxTrie          = Code(0x92)
	EthTx              = Code(0x93)
	EthTxReceiptTrie   = Code(0x94)
	EthTxReceipt       = Code(0x95)
	EthStateTrie       = Code(0x96)
	EthAccountSnapshot = Code(0x97)
	EthStorageTrie     = Code(0x98)

	BitcoinBlock = Code(0xb0)
	BitcoinTx    = Code(0xb1)
	ZcashBlock   = Code(0xc0)
	ZcashTx      = Code(0xc1)

	Ed25519Pub = Code(0xed)
)
View Source
const UnknownMulticodecString = "<Unknown Multicodec>"

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(c Code, data []byte) []byte

func CodeToString

func CodeToString(c Code) string

Types

type Code

type Code uint64

func GetCode

func GetCode(data []byte) Code

func SplitPrefix

func SplitPrefix(data []byte) (Code, []byte)

func (Code) String

func (c Code) String() string

Jump to

Keyboard shortcuts

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