(no commit message provided)

This commit is contained in:
Prad Nukala
2024-07-06 00:34:41 -04:00
committed by Prad Nukala (aider)
parent 5fd43dfd6b
commit 2f976209db
345 changed files with 409 additions and 72177 deletions
-29
View File
@@ -1,29 +0,0 @@
//
// Copyright Coinbase, Inc. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
// Copyright Coinbase, Inc. All Rights Reserved.
//
//
// SPDX-License-Identifier: Apache-2.0
//
package v1
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestNewPoly(t *testing.T) {
secret := field.ElementFromBytes([]byte("test"))
poly, err := newPoly(secret, 4)
require.Nil(t, err)
require.NotNil(t, poly)
require.Equal(t, poly.Coefficients[0], secret)
}