File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 35
35
36
36
from eth .beacon .typing import (
37
37
BLSPubkey ,
38
- BLSPubkeyAggregated ,
39
38
BLSSignature ,
40
39
BLSSignatureAggregated ,
41
40
)
@@ -202,11 +201,11 @@ def aggregate_signatures(signatures: Sequence[BLSSignature]) -> BLSSignatureAggr
202
201
return BLSSignatureAggregated (compress_G2 (o ))
203
202
204
203
205
- def aggregate_pubkeys (pubkeys : Sequence [BLSPubkey ]) -> BLSPubkeyAggregated :
204
+ def aggregate_pubkeys (pubkeys : Sequence [BLSPubkey ]) -> BLSPubkey :
206
205
o = Z1
207
206
for p in pubkeys :
208
207
o = add (o , decompress_G1 (p ))
209
- return BLSPubkeyAggregated (compress_G1 (o ))
208
+ return BLSPubkey (compress_G1 (o ))
210
209
211
210
212
211
def verify_multiple (pubkeys : Sequence [BLSPubkey ],
Original file line number Diff line number Diff line change 3
3
SlotNumber = NewType ('SlotNumber' , int ) # uint64
4
4
ShardNumber = NewType ('ShardNumber' , int ) # uint64
5
5
BLSPubkey = NewType ('BLSPubkey' , int ) # uint384
6
- BLSPubkeyAggregated = NewType ('BLSPubkeyAggregated' , int ) # uint384
7
6
BLSSignature = NewType ('BLSSignature' , bytes )
8
7
BLSSignatureAggregated = NewType (
9
8
'BLSSignatureAggregated' ,
You can’t perform that action at this time.
0 commit comments