Skip to content

[#131] Add byte signing to pure nettest

Roman Melnikov requested to merge rvem/#131-signing-in-pure-nettest into master

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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports