common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KETHDecimals = 18

Functions

func CreateUrl

func CreateUrl(urlString string) (*url.URL, error)

func GetListOfBLSKeysFromSignedValidatorRegistration added in v0.0.3

func GetListOfBLSKeysFromSignedValidatorRegistration(payload []apiv1.SignedValidatorRegistration) (pubkeys []phase0.BLSPubKey, payloadMap map[string]apiv1.SignedValidatorRegistration)

Types

type ExcludedValidator added in v0.0.3

type ExcludedValidator struct {
	PublicKey                        phase0.BLSPubKey `json:"publicKey"`
	ExcludedFromProposerRegistration bool             `json:"excludedFromProposerRegistration"`
	ExcludedFromNativeDelegation     bool             `json:"excludedFromNativeDelegation"`
}

type K2Claim added in v0.0.5

type K2Claim struct {
	ValidatorPubKey  phase0.BLSPubKey
	ECDSASignature   balanceverifier.EcdsaSignature
	EffectiveBalance uint64
	ClaimAmount      uint64
	ClaimSuccess     bool
}

type K2Exit added in v0.0.5

type K2Exit struct {
	ValidatorPubKey  phase0.BLSPubKey
	ECDSASignature   balanceverifier.EcdsaSignature
	EffectiveBalance uint64
	ExitSuccess      bool
}

type K2ValidatorRegistration

type K2ValidatorRegistration struct {
	ECDSASignature              signatureswapper.EcdsaSignature
	RepresentativeAddress       common.Address
	SignedValidatorRegistration *apiv1.SignedValidatorRegistration
	ProposerRegistrySuccess     bool
	K2Success                   bool
}

Jump to

Keyboard shortcuts

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