core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 1 Imported by: 6

Documentation

Overview

Package core contains core domain model.

Index

Constants

This section is empty.

Variables

View Source
var (
	Mijin   = Chain{byte(0x60)}
	Mainnet = Chain{byte(0x68)}
	Testnet = Chain{byte(0x98)}
)

Supported predefined chains.

Functions

func IsChainPrefix added in v0.3.0

func IsChainPrefix(str string) bool

IsChainPrefix checks for existing chain prefixes

Types

type Chain

type Chain struct {
	Id byte
}

Chain is the type of NEM chain.

func (Chain) ChainPrefix added in v0.2.0

func (ch Chain) ChainPrefix() string

ChainPrefix returns unique chain prefix

Jump to

Keyboard shortcuts

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