Commit d212cc2 1 parent f226a2e commit d212cc2 Copy full SHA for d212cc2
File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @rigidity/chia" ,
3
3
"author" : " rigidity" ,
4
- "version" : " 1.6.1 " ,
4
+ "version" : " 1.7.0 " ,
5
5
"description" : " Chia RPC client and various helper utilities." ,
6
6
"repository" : " https://github.com/Rigidity/chia.git" ,
7
7
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change
1
+ import { AugSchemeMPL , JacobianPoint } from '@rigidity/bls-signatures' ;
2
+ import { SpendBundle } from '../types/SpendBundle' ;
3
+
4
+ export function aggregateSpendBundles (
5
+ spendBundles : SpendBundle [ ]
6
+ ) : SpendBundle {
7
+ return {
8
+ coin_spends : spendBundles
9
+ . map ( ( spendBundle ) => spendBundle . coin_spends )
10
+ . flat ( ) ,
11
+ aggregated_signature : AugSchemeMPL . aggregate (
12
+ spendBundles . map ( ( spendBundle ) =>
13
+ JacobianPoint . fromHexG2 ( spendBundle . aggregated_signature )
14
+ )
15
+ ) . toHex ( ) ,
16
+ } ;
17
+ }
You can’t perform that action at this time.
0 commit comments