Add common/Leaf struct & parsers (bigint & byte arrays)

This commit is contained in:
arnaucube
2020-08-03 12:53:36 +02:00
parent 2f93848292
commit 59644c3435
6 changed files with 433 additions and 1 deletions

9
common/errors.go Normal file
View 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")