mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add common/Leaf struct & parsers (bigint & byte arrays)
This commit is contained in:
9
common/errors.go
Normal file
9
common/errors.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package common
|
||||
|
||||
import "errors"
|
||||
|
||||
// ErrNotInFF is used when the *big.Int does not fit inside the Finite Field
|
||||
var ErrNotInFF = errors.New("BigInt not inside the Finite Field")
|
||||
|
||||
// ErrNumOverflow is used when a given value overflows the maximum capacity of the parameter
|
||||
var ErrNumOverflow = errors.New("Value overflows the type")
|
||||
Reference in New Issue
Block a user