Documentation
¶
Index ¶
- Constants
- Variables
- type Data
- type DepositDataJson
- type Initiator
- func (c *Initiator) CreateVerifyFunc(ops []*wire.Operator) (func(id uint64, msg []byte, sig []byte) error, error)
- func (c *Initiator) GetThreshold(ids []uint64) (int, error)
- func (c *Initiator) MakeMultiple(id [24]byte, allmsgs [][]byte) (*wire.MultipleSignedTransports, error)
- func (c *Initiator) ProcessDKGResultResponse(responseResult [][]byte, id [24]byte) ([]dkg.Result, *bls.PublicKey, map[ssvspec_types.OperatorID]*bls.PublicKey, ...)
- func (c *Initiator) SendAndCollect(op Operator, method string, data []byte) ([]byte, error)
- func (c *Initiator) SendExchangeMsgs(exchangeMsgs [][]byte, id [24]byte, operators []*wire.Operator) ([][]byte, error)
- func (c *Initiator) SendInitMsg(init *wire.Init, id [24]byte, operators []*wire.Operator) ([][]byte, error)
- func (c *Initiator) SendKyberMsgs(kyberDeals [][]byte, id [24]byte, operators []*wire.Operator) ([][]byte, error)
- func (c *Initiator) SendToAll(method string, msg []byte, operatorsIDs []*wire.Operator) ([][]byte, error)
- func (c *Initiator) StartDKG(id [24]byte, withdraw []byte, ids []uint64, fork [4]byte, forkName string, ...) (*DepositDataJson, *KeyShares, error)
- func (c *Initiator) VerifyAll(id [24]byte, allmsgs [][]byte) error
- type KeyShares
- type KeySharesKeys
- type KeySign
- type MockInitiator
- type Operator
- type OperatorData
- type OperatorDataJson
- type Operators
- type Payload
Constants ¶
View Source
const ( // MaxEffectiveBalanceInGwei is the max effective balance MaxEffectiveBalanceInGwei phase0.Gwei = 32000000000 )
Variables ¶
View Source
var IsSupportedDepositNetwork = func(network eth2_key_manager_core.Network) bool { return network == eth2_key_manager_core.PyrmontNetwork || network == eth2_key_manager_core.PraterNetwork || network == eth2_key_manager_core.MainNetwork }
IsSupportedDepositNetwork returns true if the given network is supported
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { PublicKey string `json:"publicKey"` Operators []OperatorData `json:"operators"` }
type DepositDataJson ¶
type DepositDataJson struct { PubKey string `json:"pubkey"` WithdrawalCredentials string `json:"withdrawal_credentials"` Amount phase0.Gwei `json:"amount"` Signature string `json:"signature"` DepositMessageRoot string `json:"deposit_message_root"` DepositDataRoot string `json:"deposit_data_root"` ForkVersion string `json:"fork_version"` NetworkName string `json:"network_name"` DepositCliVersion string `json:"deposit_cli_version"` }
type Initiator ¶
type Initiator struct { Logger *zap.Logger Client *req.Client Operators Operators VerifyFunc func(id uint64, msg, sig []byte) error PrivateKey *rsa.PrivateKey }
func (*Initiator) CreateVerifyFunc ¶
func (*Initiator) MakeMultiple ¶
func (*Initiator) ProcessDKGResultResponse ¶
func (c *Initiator) ProcessDKGResultResponse(responseResult [][]byte, id [24]byte) ([]dkg.Result, *bls.PublicKey, map[ssvspec_types.OperatorID]*bls.PublicKey, map[ssvspec_types.OperatorID]*bls.Sign, map[ssvspec_types.OperatorID]*bls.Sign, error)
func (*Initiator) SendAndCollect ¶
func (*Initiator) SendExchangeMsgs ¶
func (*Initiator) SendInitMsg ¶
func (*Initiator) SendKyberMsgs ¶
type KeySharesKeys ¶
type KeySharesKeys struct {}
type KeySign ¶
type KeySign struct { ValidatorPK ssvspec_types.ValidatorPK SigningRoot []byte }
type MockInitiator ¶
type MockInitiator interface { SendAndCollect(op Operator, method string, data []byte) ([]byte, error) SendToAll(method string, msg []byte) ([][]byte, error) PakeMultiple(id [24]byte, allmsgs [][]byte) (*wire.MultipleSignedTransports, error) StartDKG(withdraw []byte, ids []uint64, threshold uint64, fork [4]byte, forkName string, owner common.Address, nonce uint64) (*DepositDataJson, *KeyShares, error) CreateVerifyFunc(ops []*wire.Operator) (func(id uint64, msg []byte, sig []byte) error, error) ProcessDKGResultResponse(responseResult [][]byte, id [24]byte) ([]dkg.Result, *bls.PublicKey, map[ssvspec_types.OperatorID]*bls.PublicKey, map[ssvspec_types.OperatorID]*bls.Sign, map[ssvspec_types.OperatorID]*bls.Sign, error) SendKyberMsgs(kyberDeals [][]byte, id [24]byte) ([][]byte, error) SendExchangeMsgs(exchangeMsgs [][]byte, id [24]byte) ([][]byte, error) SendInitMsg(init *wire.Init, id [24]byte) ([][]byte, error) }
type OperatorData ¶
type OperatorDataJson ¶
type Operators ¶
func LoadOperatorsJson ¶
Click to show internal directories.
Click to hide internal directories.