ECKey: adds test to ensure throws on negative D
This commit is contained in:
parent
b10e96cbff
commit
978f0c5406
4
test/fixtures/eckey.json
vendored
4
test/fixtures/eckey.json
vendored
@ -67,6 +67,10 @@
|
|||||||
],
|
],
|
||||||
"invalid": {
|
"invalid": {
|
||||||
"constructor": [
|
"constructor": [
|
||||||
|
{
|
||||||
|
"exception": "Private key must be greater than 0",
|
||||||
|
"D": "-1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"exception": "Private key must be greater than 0",
|
"exception": "Private key must be greater than 0",
|
||||||
"D": "0"
|
"D": "0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user