[#131] Add byte signing to pure nettest
Description
Problem: Currently there is a stub for niSignBytes
in
Morley.Nettest.Pure
, however, this action can be used in nettest
scenarios that include multisig contracts.
Solution: Optionally store secret key along with address for an alias and sign bytesequences using it.
Also add signBytes
action to nettest.
Also, getPublicKey
action was added to nettest. Currently, it's used only for testing signBytes
,
but later it can be used in morley-multisig
nettest scenarios.
Related issue(s)
Resolves #131 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. <- Apparently, it makes sense to add something after !395 (merged) with morley-nettest
test-suite is merged. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Roman Melnikov