mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 19:46:41 +01:00
Extend Poseidon to 16 inputs (#37)
* Extend poseidon to 16 inputs. Better initialization of Poseidon constants * Update deps * Fix linter warnings * Test vectors for poseidon with 14 inputs
This commit is contained in:
committed by
GitHub
parent
933c28a8d7
commit
ef9f86210a
@@ -41,7 +41,7 @@ func init() {
|
||||
|
||||
Order = utils.NewIntFromString(
|
||||
"21888242871839275222246405745257275088614511777268538073601725287587578984328")
|
||||
SubOrder = new(big.Int).Rsh(Order, 3)
|
||||
SubOrder = new(big.Int).Rsh(Order, 3) //nolint:gomnd
|
||||
|
||||
B8 = NewPoint()
|
||||
B8.X = utils.NewIntFromString(
|
||||
|
||||
@@ -139,7 +139,7 @@ func TestCompressDecompress(t *testing.T) {
|
||||
|
||||
func TestSignatureCompScannerValuer(t *testing.T) {
|
||||
privK := NewRandPrivKey()
|
||||
var value driver.Valuer //nolint:gosimple this is done to ensure interface compatibility
|
||||
var value driver.Valuer //nolint:gosimple // this is done to ensure interface compatibility
|
||||
value = privK.SignPoseidon(big.NewInt(674238462)).Compress()
|
||||
scan := privK.SignPoseidon(big.NewInt(1)).Compress()
|
||||
fromDB, err := value.Value()
|
||||
|
||||
Reference in New Issue
Block a user