ECKey: adds test to ensure throws on negative D

This commit is contained in:
Daniel Cousens 2014-05-31 11:23:47 +10:00
parent b10e96cbff
commit 978f0c5406

View File

@ -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"