neoneo-go/pkg/crypto/keys
Roman Khimov e537dc9ee4 keys: improve publick key checks with a check against P
ANSI X9.62 says that if x or y coordinate are greater than or equal to
curve.Params().P, the conversion should return an error (see ANSI X9.62:2005
Section A.5.8 Step b, which invokes Section A.5.5, which does the check and
rejects when x or y are too big.

See https://github.com/golang/go/issues/20482 for more details.
2019-09-05 12:34:12 +03:00
..
nep2.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
nep2_test.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
private_key.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
private_key_test.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
publickey.go keys: improve publick key checks with a check against P 2019-09-05 12:34:12 +03:00
publickey_test.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
sign_verify_test.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
wif.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
wif_test.go keys: simplify tests with assert package 2019-08-27 17:46:01 +03:00