Skip to content

Instantly share code, notes, and snippets.

View alonmuroch's full-sized avatar

Alon Muroch alonmuroch

View GitHub Profile
// ProcessMessage pulls messages from the queue to be processed sequentially
func (i *Instance) ProcessMessage() (processedMsg bool, err error) {
if netMsg := i.MsgQueue.PopMessage(msgqueue.IBFTMessageIndexKey(i.State.Lambda.Get(), i.State.SeqNumber.Get(), i.State.Round.Get())); netMsg != nil {
var pp pipeline.Pipeline
switch netMsg.SignedMessage.Message.Type {
case proto.RoundState_PrePrepare:
pp = i.prePrepareMsgPipeline()
case proto.RoundState_Prepare:
pp = i.prepareMsgPipeline()
case proto.RoundState_Commit:
function registerValidator(
uint256[] operatorIds,
bytes[] signatures,
bytes[] encryptedShares,
bytes[] sharesPublicKeys
uint8 setSize,
bytes withdrawalCredentials,
bytes publicKey,
) external {
// verify signature
SignedMessage{
Signers: []types.OperatorID{1, 2, 3, 4},
Signature: []byte{},
Message: Message{
MsgType: RoundChangeMsgType,
Round: 2,
Height: 10,
Identifier: []byte{},
Root: [32]byte{},
DataRound: 1,
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Voting
* @dev Store & retrieve value in a variable
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts
*/
contract Voting {
**Service Level Agreement (SLA)**
This Service Level Agreement ("SLA") is entered into by and between [Service Provider Name] ("Provider") and [Client Name] ("Client") on [Date].
**1. Scope**
This SLA outlines the agreed-upon levels of service and support provided by the Provider to the Client for the duration of the agreement.
**2. Services Provided**