1
1
export const serializeDkgRound1 = ( index : number , identities : string [ ] , minSigners : number ) : Buffer => {
2
2
let blob = Buffer . alloc ( 1 + 1 + identities . length * 129 + 1 )
3
- console . log ( `dkgRound1 msg size: ${ blob . byteLength } ` )
4
3
5
4
blob . writeUint8 ( index )
6
5
blob . writeUint8 ( identities . length , 1 )
@@ -17,7 +16,6 @@ export const serializeDkgRound2 = (index: number, round1PublicPackages: string[]
17
16
let round1SecretPackageLen = round1SecretPackage . length / 2
18
17
19
18
let blob = Buffer . alloc ( 1 + 1 + 2 + round1PublicPackages . length * round1PublicPackagesLen + 2 + round1SecretPackageLen )
20
- console . log ( `dkgRound2 msg size: ${ blob . byteLength } ` )
21
19
22
20
let pos = 0
23
21
@@ -73,7 +71,6 @@ export const serializeDkgRound3Min = (
73
71
2 +
74
72
gskBytes . length * gskLen
75
73
)
76
- console . log ( `dkgRound3 msg size: ${ blob . byteLength } ` )
77
74
78
75
let pos = 0
79
76
@@ -146,7 +143,6 @@ export const serializeDkgRound3Min = (
146
143
147
144
export const serializeDkgGetCommitments = ( tx_hash : string ) : Buffer => {
148
145
let blob = Buffer . alloc ( 32 )
149
- console . log ( `dkgGetCommitment msg size: ${ blob . byteLength } ` )
150
146
151
147
blob . fill ( Buffer . from ( tx_hash , 'hex' ) , 0 )
152
148
@@ -159,7 +155,6 @@ export const serializeDkgSign = (pkRandomness: string, frostSigningPackage: stri
159
155
let txHashLen = 32
160
156
161
157
let blob = Buffer . alloc ( 2 + pkRandomnessLen + 2 + frostSigningPackageLen + txHashLen )
162
- console . log ( `dkgSign msg size: ${ blob . byteLength } ` )
163
158
164
159
let pos = 0
165
160
0 commit comments