common

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AccountAddressPrefix Account Address Prefix
	AccountAddressPrefix = "seele"

	// CoinType seele-n in https://github.com/satoshilabs/slips/blob/master/slip-0044.md
	CoinType = 513

	// FullFundraiserPath BIP44Prefix is the parts of the BIP44 HD path that are fixed by
	// what we used during the fundraiser.
	FullFundraiserPath = "44'/513'/0'/0/0"
)

Variables

View Source
var (
	// AccountPubKeyPrefix Account PubKey Prefix
	AccountPubKeyPrefix = AccountAddressPrefix + "pub"
	// ValidatorAddressPrefix Validator Address Prefix
	ValidatorAddressPrefix = AccountAddressPrefix + "valoper"
	// ValidatorPubKeyPrefix Validator PubKey Prefix
	ValidatorPubKeyPrefix = AccountAddressPrefix + "valoperpub"
	// ConsNodeAddressPrefix Node Address Prefix
	ConsNodeAddressPrefix = AccountAddressPrefix + "valcons"
	// ConsNodePubKeyPrefix Node PubKey Prefix
	ConsNodePubKeyPrefix = AccountAddressPrefix + "valconspub"
)

Functions

func GetAccountPubKey added in v0.0.7

func GetAccountPubKey(pk cryptotypes.PubKey) (string, error)

GetAccountPubKey Get Account PubKey from ed25519 public key

func GetConsenusPubKey added in v0.0.7

func GetConsenusPubKey(pk cryptotypes.PubKey) (string, error)

GetConsenusPubKey Get Consenus PubKey from ed25519 public key

func GetPubKeyFromString added in v0.0.7

func GetPubKeyFromString(pkstr string) (cryptotypes.PubKey, error)

GetPubKeyFromString get pubkey from string

func GetValidatorPubKey added in v0.0.7

func GetValidatorPubKey(pk cryptotypes.PubKey) (string, error)

GetValidatorPubKey Get Validator PubKey from ed25519 public key

func SetConfig

func SetConfig()

SetConfig set chain config

Types

This section is empty.

Jump to

Keyboard shortcuts

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