mlabs-haskell / mlabs-haskell/majority-multisign

Test the effect of stripping the `newtype` wrappers on the script size

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Commit https://github.com/mlabs-haskell/majority-multisign/commit/215710cb829a06b14270fe0cd9ab091033ffc129 replaced three data declarations with newtype to shave 57 bytes off the validator script size. We should test what happens if the three wrapper types are completely stripped away. If this is a major win (e.g. > 100 bytes) we might want to eliminate them.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with commit 215710cb829a06b14270fe0cd9ab091033ffc129 and inspect the three declarations changed from data to newtype. Find how the validator script size is measured, test removing those wrappers, and compare the resulting byte size with the current version. Done means the size impact is recorded clearly enough to decide whether elimination is worthwhile.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
blockchain
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.