Versions in this module Expand all Collapse all v1 v1.0.0 Nov 19, 2024 Changes in this version + const ETH1WithdrawalPrefixByte + const MAX_EFFECTIVE_BALANCE + const MIN_ACTIVATION_BALANCE + func ComputeDepositMessageSigningRoot(network core.Network, message *phase0.DepositMessage) (phase0.Root, error) + func Decrypt(pk *rsa.PrivateKey, msg []byte) ([]byte, error) + func DepositDataRootForFork(fork [4]byte, validatorPK []byte, withdrawalCredentials []byte, ...) (phase0.Root, error) + func ETH1WithdrawalCredentials(withdrawalAddr []byte) []byte + func EncodeRSAPublicKey(pk *rsa.PublicKey) ([]byte, error) + func Encrypt(pub *rsa.PublicKey, msg []byte) ([]byte, error) + func GenerateRSAKeys() (*rsa.PrivateKey, *rsa.PublicKey, error) + func GetNetworkByFork(fork [4]byte) (core.Network, error) + func InitBLS() + func IsEOAAccount(client eip1271.ETHClient, address common.Address) (bool, error) + func ParseRSAPublicKey(pk []byte) (*rsa.PublicKey, error) + func RecoverBLSSignature(ids []uint64, partialSigs []*bls.Sign) (*bls.Sign, error) + func RecoverValidatorPublicKey(ids []uint64, sharePks []*bls.PublicKey) (*bls.PublicKey, error) + func SignRSA(sk *rsa.PrivateKey, byts []byte) ([]byte, error) + func VerifyDepositData(network core.Network, depositData *phase0.DepositData) error + func VerifyPartialSigs(sigs []*bls.Sign, pubs []*bls.PublicKey, data []byte) error + func VerifyRSA(pk *rsa.PublicKey, msg, signature []byte) error + func VerifySignedMessageByOwner(client eip1271.ETHClient, owner [20]byte, hash [32]byte, signature []byte) error