Commit e35ff4a 1 parent d3bcdf1 commit e35ff4a Copy full SHA for e35ff4a
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { aggregateSignatures , Signature } from "@chainsafe/blst" ;
2
- import { BitArray , toHexString } from "@chainsafe/ssz" ;
2
+ import { BitArray } from "@chainsafe/ssz" ;
3
3
import {
4
4
ForkName ,
5
5
ForkSeq ,
Original file line number Diff line number Diff line change @@ -202,7 +202,8 @@ export function getAttDataFromSignedAggregateAndProofElectra(data: Uint8Array):
202
202
if ( data . length < endIndex + SIGNATURE_SIZE + COMMITTEE_BITS_SIZE ) {
203
203
return null ;
204
204
}
205
- return toBase64 ( data . subarray ( startIndex , endIndex ) ) ;
205
+ attDataBuf . set ( data . subarray ( startIndex , endIndex ) ) ;
206
+ return attDataBuf . toString ( "base64" ) ;
206
207
}
207
208
208
209
/**
@@ -217,7 +218,8 @@ export function getCommitteeBitsFromSignedAggregateAndProofElectra(data: Uint8Ar
217
218
return null ;
218
219
}
219
220
220
- return toBase64 ( data . subarray ( startIndex , endIndex ) ) ;
221
+ committeeBitsDataBuf . set ( data . subarray ( startIndex , endIndex ) ) ;
222
+ return committeeBitsDataBuf . toString ( "base64" ) ;
221
223
}
222
224
223
225
/**
You can’t perform that action at this time.
0 commit comments