Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Oct 8, 2024
1 parent 46bf168 commit 89f9fff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/serialize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const serializeDkgRound1 = (index: number, identities: string[], minSigners: number): Buffer => {
let blob = Buffer.alloc(1 + 1 + identities.length * 129 + 1)
console.log(`dkgRound1 msg size: ${blob.byteLength}`)

blob.writeUint8(index)
blob.writeUint8(identities.length, 1)
Expand All @@ -17,7 +16,6 @@ export const serializeDkgRound2 = (index: number, round1PublicPackages: string[]
let round1SecretPackageLen = round1SecretPackage.length / 2

let blob = Buffer.alloc(1 + 1 + 2 + round1PublicPackages.length * round1PublicPackagesLen + 2 + round1SecretPackageLen)
console.log(`dkgRound2 msg size: ${blob.byteLength}`)

let pos = 0

Expand Down Expand Up @@ -73,7 +71,6 @@ export const serializeDkgRound3Min = (
2 +
gskBytes.length * gskLen
)
console.log(`dkgRound3 msg size: ${blob.byteLength}`)

let pos = 0

Expand Down Expand Up @@ -146,7 +143,6 @@ export const serializeDkgRound3Min = (

export const serializeDkgGetCommitments = (tx_hash: string): Buffer => {
let blob = Buffer.alloc(32)
console.log(`dkgGetCommitment msg size: ${blob.byteLength}`)

blob.fill(Buffer.from(tx_hash, 'hex'), 0)

Expand All @@ -159,7 +155,6 @@ export const serializeDkgSign = (pkRandomness: string, frostSigningPackage: stri
let txHashLen = 32

let blob = Buffer.alloc(2 + pkRandomnessLen + 2 + frostSigningPackageLen + txHashLen)
console.log(`dkgSign msg size: ${blob.byteLength}`)

let pos = 0

Expand Down

0 comments on commit 89f9fff

Please sign in to comment.