Documentation ¶
Index ¶
Constants ¶
View Source
const ( NebulaIdLength = 32 EthereumAddressLength = 20 WavesAddressLength = 26 )
Variables ¶
View Source
var ( ErrInvalidChainType = errors.New("invalid chain type") ErrParseChainType = errors.New("invalid parse chain type") )
Functions ¶
Types ¶
type ConsulPubKey ¶
type ConsulPubKey ed25519.PubKeyEd25519
func HexToValidatorPubKey ¶
func HexToValidatorPubKey(hex string) (ConsulPubKey, error)
type LedgerValidator ¶
type LedgerValidator struct { PrivKey crypto.PrivKey PubKey ConsulPubKey }
type OraclesPubKey ¶
type OraclesPubKey [33]byte
func BytesToOraclePubKey ¶
func BytesToOraclePubKey(value []byte, chainType ChainType) OraclesPubKey
func StringToOraclePubKey ¶
func StringToOraclePubKey(value string, chainType ChainType) (OraclesPubKey, error)
func (*OraclesPubKey) ToBytes ¶
func (pubKey *OraclesPubKey) ToBytes(chainType ChainType) []byte
func (*OraclesPubKey) ToString ¶
func (pubKey *OraclesPubKey) ToString(chainType ChainType) string
Click to show internal directories.
Click to hide internal directories.