core

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: GPL-3.0 Imports: 3 Imported by: 16

Documentation

Index

Constants

View Source
const AddressBytesLen = 32

AddressBytesLen represents the number of bytes of an address

View Source
const MinAllowedDeltaToFinal = 1

MinAllowedDeltaToFinal is the minimum value between nonces allowed when checking finality on a shard

View Source
const WebServerOffString = "off"

WebServerOffString represents the constant used to switch off the web server

Variables

View Source
var AddressPublicKeyConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(AddressBytesLen, log)

AddressPublicKeyConverter represents the default address public key converter

Functions

This section is empty.

Types

type AddressHandler

type AddressHandler interface {
	AddressAsBech32String() string
	AddressBytes() []byte
	AddressSlice() [32]byte
	IsValid() bool
	IsInterfaceNil() bool
}

AddressHandler will handle different implementations of an address

type CryptoComponentsHolder

type CryptoComponentsHolder interface {
	GetPublicKey() crypto.PublicKey
	GetPrivateKey() crypto.PrivateKey
	GetBech32() string
	GetAddressHandler() AddressHandler
	IsInterfaceNil() bool
}

CryptoComponentsHolder is able to holder and provide all the crypto components

type RestAPIEntityType

type RestAPIEntityType string

RestAPIEntityType defines the entity that can resolve REST API requests

const (
	// ObserverNode the entity queried is an observer
	ObserverNode RestAPIEntityType = "observer"
	// Proxy the entity queried is a proxy
	Proxy RestAPIEntityType = "proxy"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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