addrtypes

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixTestNet = "ckt"
	PrefixMainNet = "ckb"
)

Variables

This section is empty.

Functions

func IsAllowdedFormatType

func IsAllowdedFormatType(formatType FormatType) bool

func IsAllowedHashType

func IsAllowedHashType(hashType CodeHashIndex) bool

func IsAllowedPrefix

func IsAllowedPrefix(prefix string) bool

func IsFullPayloadFormatType

func IsFullPayloadFormatType(formatType FormatType) bool

func PrefixForMode

func PrefixForMode(mode types.Mode) string

Types

type FormatType

type FormatType = uint8

type HashInfo

type HashInfo struct {
	HashType CodeHashIndex
	Data     *types.HexStr
}

func NewHashInfo

func NewHashInfo(payload []byte) (*HashInfo, error)

Jump to

Keyboard shortcuts

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