Skip to content

Commit

Permalink
add OperatorId type
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed May 17, 2024
1 parent e8e2565 commit 49dbd93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/services/bls_aggregation/src/bls_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub struct BlsAggregatorService {
pub aggregated_response_receiver: UnboundedReceiver<BlsAggregationServiceResponse>,
signed_task_response:
Arc<RwLock<HashMap<TaskIndex, UnboundedSender<SignedTaskResponseDigest>>>>,

avs_registry_service: AvsRegistryServiceChainCaller,
}

Expand All @@ -61,7 +60,7 @@ impl BlsAggregatorService {
avs_registry_service: avs_registry_service,
}
}

pub(crate) async fn write(
&self,
) -> RwLockWriteGuard<'_, HashMap<TaskIndex, UnboundedSender<SignedTaskResponseDigest>>> {
Expand Down
4 changes: 3 additions & 1 deletion crates/types/src/operator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloy_primitives::{Address, U256};
use alloy_primitives::{Address, FixedBytes, U256};
use alloy_sol_types::sol;
use eigensdk_crypto_bls::attestation::{
G1Point as AttestationG1Point, G2Point as AttestationG2Point,
Expand All @@ -16,6 +16,8 @@ sol!(
const MAX_NUMBER_OF_QUORUMS: usize = 192;
use BLSApkRegistry::{G1Point, G2Point};

pub type OperatorId = FixedBytes<32>;

pub fn bitmap_to_quorum_ids(quorum_bitmaps: U256) -> Vec<u8> {
let bytes = quorum_bitmaps.to_be_bytes::<32>();

Expand Down

0 comments on commit 49dbd93

Please sign in to comment.