arnaucube
arnaucube/go-blindsecp256k1Public Self-hosted repository
Tmp fix disabling bytes 32 length
arnaucube root@arnaucube.com
Thu, 21 Apr 2022 08:05:38 +0200
commit

07077d895da570f4be85e613f1ee067b44301cb6

parent

644e7408753fa1f3a1c59f844ce98bbbecdf99e9

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M blindsecp256k1.go → blindsecp256k1.go

@@ -196,9 +196,9 @@

func checkBigIntSize(b *big.Int) error { // check b.Bytes()==32, as go returns big-endian representation of the // bigint, so if length is not 32 we have a smaller value than expected - if len(b.Bytes()) != 32 { //nolint:gomnd - return fmt.Errorf("invalid length, need 32 bytes") - } + // if len(b.Bytes()) != 32 { //nolint:gomnd + // return fmt.Errorf("invalid length, need 32 bytes") + // } return nil }