Use mocked crypto for speeding up
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- haskell
- Domain
- blockchain, cryptography
Research direction
Start with Cardano.Ledger.Crypto.Crypto in libs/cardano-ledger-core/src/Cardano/Ledger/Crypto.hs and the concrete crypto types in eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/ConcreteCryptoTypes.hs. Determine how mocked hashes could replace StandardCrypto for the emulator’s tests, then compare test speed to confirm the change improves performance.
Written by the indexing model from the issue text.
Description
No, we use an instance of `Cardano.Ledger.Crypto.Crypto`, which is [`StandardCrypto`](https://github.com/IntersectMBO/cardano-ledger/blob/master/libs/cardano-ledger-core/src/Cardano/Ledger/Crypto.hs#L40-L45). By using mock hashes we can probably speed everything up a bit. Take a look [here](https://github.com/IntersectMBO/cardano-ledger/blob/master/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/ConcreteCryptoTypes.hs#L52-L57).
`
Originally posted by @euonymos in https://github.com/mlabs-haskell/clb/issues/24#issuecomment-2025939180
- Dominant language
- Haskell
- Stars
- 10
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mlabs-haskell/clb
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
mlabs-haskell/clb#71 · 2 comments · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
mlabs-haskell/clb#67 · 1 reaction ·
-
Add CLB to CHaP Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
mlabs-haskell/clb#65 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mlabs-haskell/clb#64 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
mlabs-haskell/clb#63 ·
All issues in mlabs-haskell/clb
Similar issues
-
time-manager-0.4.0 Openfailure: bounds
Difficulty 1/5 Under an hour Newbie friendliness 72/100
commercialhaskell/stackage#8122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
simplex-chat/simplex-chat#7547 ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alunduil/alunduil-chezmoi#775 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
objectionary/phino#1350 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100