web3signer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignPath             = "/api/v1/eth2/sign/"
	ListBLSPubKeysPath   = "/api/v1/eth2/publicKeys"
	ReloadSignerKeysPath = "/reload"
	UpCheckPath          = "/upcheck"

	VALIDATOR_REGISTRATION_ACTION = "VALIDATOR_REGISTRATION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatorRegistrationPayload

type ValidatorRegistrationPayload struct {
	Type                  string                       `json:"type"`
	SigningRoot           string                       `json:"signing_root,omitempty"`
	ValidatorRegistration *apiv1.ValidatorRegistration `json:"validator_registration"`
}

type Web3SignerService

type Web3SignerService struct {
	// contains filtered or unexported fields
}

func NewWeb3SignerService

func NewWeb3SignerService() *Web3SignerService

func (*Web3SignerService) Configure

func (s *Web3SignerService) Configure(url *url.URL) error

func (*Web3SignerService) GetPubkeyList

func (s *Web3SignerService) GetPubkeyList() (map[string]bool, error)

func (*Web3SignerService) GetUrl

func (s *Web3SignerService) GetUrl() *url.URL

func (*Web3SignerService) SignRegistration

func (s *Web3SignerService) SignRegistration(
	FeeRecipient bellatrix.ExecutionAddress,
	Domain uint64,
	Pubkey phase0.BLSPubKey,
	Timestamp time.Time,
) (apiv1.SignedValidatorRegistration, error)

func (*Web3SignerService) Status

func (s *Web3SignerService) Status() error

func (*Web3SignerService) UpCheck added in v0.3.0

func (s *Web3SignerService) UpCheck() error

Jump to

Keyboard shortcuts

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