|
|
@ -73,9 +73,19 @@ |
|
|
|
], |
|
|
|
"invalid": { |
|
|
|
"recoverPubKey": [ |
|
|
|
{ |
|
|
|
"description": "Invalid r value (< 0)", |
|
|
|
"exception": "Invalid r value", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "-01", |
|
|
|
"s": "02" |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid r value (== 0)", |
|
|
|
"exception": "nR is not a valid curve point", |
|
|
|
"exception": "Invalid r value", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "00", |
|
|
@ -83,6 +93,46 @@ |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid s value (< 0)", |
|
|
|
"exception": "Invalid s value", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "02", |
|
|
|
"s": "-01" |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid s value (== 0)", |
|
|
|
"exception": "Invalid s value", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "02", |
|
|
|
"s": "00" |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid r value (nR is infinity)", |
|
|
|
"exception": "nR is not a valid curve point", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", |
|
|
|
"s": "01" |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid curve point", |
|
|
|
"exception": "Point is not on the curve", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "99999999999999999999999999999999999999", |
|
|
|
"s": "01" |
|
|
|
}, |
|
|
|
"i": 0 |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid i value (> 3)", |
|
|
|
"exception": "Recovery param is more than two bits", |
|
|
@ -104,6 +154,15 @@ |
|
|
|
"s": "3180566392414476763164587487324397066658063772201694230600609996154610926757" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid r value (< 0)", |
|
|
|
"d": "01", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "-01", |
|
|
|
"s": "02" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid r value (== 0)", |
|
|
|
"d": "01", |
|
|
@ -122,6 +181,15 @@ |
|
|
|
"s": "02" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid s value (< 0)", |
|
|
|
"d": "01", |
|
|
|
"e": "01", |
|
|
|
"signature": { |
|
|
|
"r": "02", |
|
|
|
"s": "-01" |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"description": "Invalid s value (== 0)", |
|
|
|
"d": "01", |
|
|
|