package
0.3.10
Repository: https://github.com/ssvlabs/ssv-spec.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

ComputeETHDomain returns computed domain.
No description provided by the author
ComputeSignatureDomain returns a signature domain based on the domain type and signature type.
ComputeSigningRoot returns a singable/ verifiable root calculated from the a provided data and signature domain.
DecodeSignedSSVMessage deserializes signed message bytes messsage, op id and a signature.
Decrypt with secret key (base64) and bytes, return the encrypted key string.
EncodeSignedSSVMessage serializes the message, op id and signature into bytes.
Encrypt with secret key (base64) the bytes, return the encrypted key string.
GenerateETHDepositData returns un-signed deposit data and deposit data root for signature.
GenerateKey using rsa random generate keys.
GetPublicKeyPem get public key from private key and return []byte represent the public key.
InitBLS initializes BLS.
No description provided by the author
NetworkFromString returns network from the given string value.
No description provided by the author
NewThreadSafeF returns a new instance of NewThreadSafeF.
PemToPrivateKey return rsa private key from pem.
PemToPublicKey return rsa public key from pem.
PrivateKeyToPem converts privateKey to pem encoded.
ReconstructSignatures receives a map of user indexes and serialized bls.Sign.
No description provided by the author
No description provided by the author

# Constants

BeaconTestNetwork is a simple test network with a custom genesis time.
BLSWithdrawalPrefixByte is the BLS withdrawal prefix.
List of roles.
List of roles.
List of roles.
List of roles.
List of roles.
List of roles.
List of roles.
ContributionProofs is the partial selection proofs for sync committee contributions (it's an array of sigs).
DefaultGasLimit sets gas limit used in validator registrations.
DKGMsgType represent all DKG related messages.
HoleskyNetwork represents the Holesky test network.
MainNetwork represents the main network.
MaxEffectiveBalanceInGwei is the max effective balance.
PostConsensusPartialSig is a partial signature over a decided duty (attestation data, block, etc).
PraterNetwork represents the Prater test network.
RandaoPartialSig is a partial signature over randao reveal.
SelectionProofPartialSig is a partial signature for aggregator selection proof.
SSVConsensusMsgType are all QBFT consensus related messages.
SSVPartialSignatureMsgType are all partial signatures msgs over beacon chain specific signatures.
ValidatorRegistrationPartialSig is a partial signature over a ValidatorRegistration object.
VoluntaryExitPartialSig is a partial signature over a VoluntaryExit object.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DomainTypes represent specific forks for specific chains, messages are signed with the domain type making 2 messages from different domains incompatible Historical Note: The fork version values for JatoTestnet and JatoV2Testnet are both set to 0x1 due to an error when these networks were initially introduced.
No description provided by the author
No description provided by the author
Note the fork version value.
No description provided by the author
Note the fork version value.
No description provided by the author
No description provided by the author
No description provided by the author
DomainTypes represent specific forks for specific chains, messages are signed with the domain type making 2 messages from different domains incompatible Historical Note: The fork version values for JatoTestnet and JatoV2Testnet are both set to 0x1 due to an error when these networks were initially introduced.
No description provided by the author
No description provided by the author
DomainTypes represent specific forks for specific chains, messages are signed with the domain type making 2 messages from different domains incompatible Historical Note: The fork version values for JatoTestnet and JatoV2Testnet are both set to 0x1 due to an error when these networks were initially introduced.
DomainTypes represent specific forks for specific chains, messages are signed with the domain type making 2 messages from different domains incompatible Historical Note: The fork version values for JatoTestnet and JatoV2Testnet are both set to 0x1 due to an error when these networks were initially introduced.

# Structs

ConsensusData holds all relevant duty and data Decided on by consensus.
No description provided by the author
Duty represent data regarding the duty type with the duty data.
ForkData is a simple structure holding fork information for a specific chain (and its fork).
Operator represents an SSV operator node.
PartialSignatureMessage is a msg for partial Beacon chain related signatures (like partial attestation, block, randao sigs).
No description provided by the author
Share holds all info about the QBFT/ SSV Committee for msg signing and verification.
SignedPartialSignatureMessage is an operator's signature over PartialSignatureMessage.
SignedSSVMessage is the main message passed within the SSV network.
SSVMessage is the main message passed within the SSV network, it can contain different types of messages (QBTF, Sync, etc.).
ThreadSafeF makes function execution thread safe.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
KeyManager is an interface responsible for all key manager functions.
MessageSignature includes all functions relevant for a signed message (QBFT message, post consensus msg, etc).
OperatorSigner used for to sign protocol messages.
No description provided by the author
ShareSigner used for signing with the operator's share.
SignatureVerifier is an interface responsible for the verification of SignedSSVMessages.
No description provided by the author

# Type aliases

BeaconNetwork represents the network.
BeaconRole type of the validator role for a specific duty.
Contributions --.
DomainType is a unique identifier for signatures, 2 identical pieces of data signed with different domains will result in different sigs.
MessageID is used to identify and route messages to the right validator and Runner.
No description provided by the author
NetworkID are intended to separate different SSV networks.
OperatorID is a unique ID for the node, used to create shares and verify msgs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SSZ32Bytes --.
SSZBytes --.
SSZTransactions --.
No description provided by the author
SSZWithdrawals --.
ValidatorPK is an eth2 validator public key.