Validate Acceptance Criteria of SECP bindings
Closed this issue · 1 comments
iquerejeta commented
Acceptance criteria for testing. On top of this, we want test-vectors, generated independently.
ID | Feature | AC |
---|---|---|
1 | ECDSA verification(VerificationKey, MsgHash, Signature) -> Bool Parameters specification:
|
Given I invoke the ECDSA builtinWhen I use valid parameters in the right order,Then the function output is Validation pass. |
2 | Message hash prior to ECDSA verification | Given I receive a pre-image of the message hash, a valid signature and its corresponding verification keyWhen I hash the message using SHA256 algorithm and When I execute the ECDSA verification methodThen the function output is Validation pass. |
3 | ECDSA verification | Given I invoke the ECDSA builtinWhen the size of the parameters is not exactly like specified,Then the function output is Validation failed. |
4 | ECDSA verification | Given I invoke the ECDSA builtinWhen I use an invalid VerificationKey,Then the function output is Validation failed. |
5 | ECDSA verification | Given I invoke the ECDSA builtinWhen I use an invalid MsgHash,Then the function output is Validation failed. |
6 | ECDSA verification | Given I invoke the ECDSA builtinWhen I use an invalid Signature,Then the function output is Validation failed. |
7 | Schnorr verification(VerificationKey, Msg, Signature) -> Bool Parameters specification:
|
Given I invoke the Schnorr builtinWhen I use valid parameters,Then the function output is Validation pass. |
8 | Schnorr verification | Given I invoke the Schnorr builtinWhen the size of the parameters is not according to specification,Then the function output is Validation failed. |
9 | Schnorr verification | Given I invoke the Schnorr builtinWhen I use an invalid VerificationKey,Then the function output is Validation failed. |
10 | Schnorr verification | Given I invoke the Schnorr builtinWhen I use an invalid Msg,Then the function output is Validation failed. |
11 | Schnorr verification | Given I invoke the Schnorr builtinWhen I use an invalid Signature,Then the function output is Validation failed. |
iquerejeta commented