From c7a7d041228c676d719dc0ad00f89be842b93def Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 11 Mar 2015 14:28:56 -0700 Subject: [PATCH] shamir: Remove debug statements --- shamir/shamir.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shamir/shamir.go b/shamir/shamir.go index b3f102e0e..bc493b402 100644 --- a/shamir/shamir.go +++ b/shamir/shamir.go @@ -63,11 +63,8 @@ func interpolatePolynomial(x_samples, y_samples []uint8, x uint8) uint8 { denom := add(x_samples[i], x_samples[j]) term := div(num, denom) basis = mult(basis, term) - //println(fmt.Sprintf("Num: %d Denom: %d Term: %d Basis: %d", - // num, denom, term, basis)) } group := mult(y_samples[i], basis) - //println(fmt.Sprintf("Group: %d", group)) result = add(result, group) } return result @@ -203,9 +200,7 @@ func Combine(parts [][]byte) ([]byte, error) { } // Interpolte the polynomial and compute the value at 0 - println(fmt.Sprintf("byte: %d x: %v y: %v", idx, x_samples, y_samples)) val := interpolatePolynomial(x_samples, y_samples, 0) - println(fmt.Sprintf("byte: %d out: %v", idx, val)) // Evaluate the 0th value to get the intercept secret[idx] = val