mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 03:26:39 +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
@@ -14,7 +14,7 @@ import (
|
||||
// NewIntFromString creates a new big.Int from a decimal integer encoded as a
|
||||
// string. It will panic if the string is not a decimal integer.
|
||||
func NewIntFromString(s string) *big.Int {
|
||||
v, ok := new(big.Int).SetString(s, 10)
|
||||
v, ok := new(big.Int).SetString(s, 10) //nolint:gomnd
|
||||
if !ok {
|
||||
panic(fmt.Sprintf("Bad base 10 string %s", s))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user