Documentation
¶
Index ¶
- Constants
- type EcdsaSignature
- type Info
- type SignatureSwapPayload
- type SignatureSwapResponse
- type SignatureSwapperService
- func (s *SignatureSwapperService) Configure(url *url.URL) error
- func (s *SignatureSwapperService) ConnectedChainId() *big.Int
- func (s *SignatureSwapperService) Domain() uint64
- func (s *SignatureSwapperService) GenerateSignature(registration apiv1.SignedValidatorRegistration, ...) (EcdsaSignature, error)
- func (s *SignatureSwapperService) GetInfo() (Info, error)
Constants ¶
View Source
const ( InfoPath = "/info" GenerateSignaturePath = "/validator-registration" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcdsaSignature ¶
type SignatureSwapPayload ¶
type SignatureSwapPayload struct { Signature phase0.BLSSignature `json:"signature"` Message *apiv1.ValidatorRegistration `json:"message"` RepresentativeAddress common.Address `json:"representativeAddress"` }
type SignatureSwapResponse ¶
type SignatureSwapResponse struct { OriginalData *apiv1.SignedValidatorRegistration `json:"originalData"` EcdsaSignature EcdsaSignature `json:"ecdsaSignature"` }
type SignatureSwapperService ¶
type SignatureSwapperService struct {
// contains filtered or unexported fields
}
func NewSignatureSwapperService ¶
func NewSignatureSwapperService() *SignatureSwapperService
func (*SignatureSwapperService) Configure ¶
func (s *SignatureSwapperService) Configure(url *url.URL) error
func (*SignatureSwapperService) ConnectedChainId ¶
func (s *SignatureSwapperService) ConnectedChainId() *big.Int
func (*SignatureSwapperService) Domain ¶
func (s *SignatureSwapperService) Domain() uint64
func (*SignatureSwapperService) GenerateSignature ¶
func (s *SignatureSwapperService) GenerateSignature( registration apiv1.SignedValidatorRegistration, representativeAddress common.Address, ) (EcdsaSignature, error)
func (*SignatureSwapperService) GetInfo ¶
func (s *SignatureSwapperService) GetInfo() (Info, error)
Click to show internal directories.
Click to hide internal directories.