mirror of
https://github.com/arnaucube/go-blindsecp256k1.git
synced 2026-02-07 11:36:42 +01:00
Tmp fix disabling bytes 32 length
This commit is contained in:
@@ -196,9 +196,9 @@ func NewRequestParameters() (*big.Int, *Point, error) {
|
|||||||
func checkBigIntSize(b *big.Int) error {
|
func checkBigIntSize(b *big.Int) error {
|
||||||
// check b.Bytes()==32, as go returns big-endian representation of the
|
// 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
|
// bigint, so if length is not 32 we have a smaller value than expected
|
||||||
if len(b.Bytes()) != 32 { //nolint:gomnd
|
// if len(b.Bytes()) != 32 { //nolint:gomnd
|
||||||
return fmt.Errorf("invalid length, need 32 bytes")
|
// return fmt.Errorf("invalid length, need 32 bytes")
|
||||||
}
|
// }
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user