Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mocked crypto for speeding up #31

Open
uhbif19 opened this issue Mar 29, 2024 · 1 comment
Open

Use mocked crypto for speeding up #31

uhbif19 opened this issue Mar 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@uhbif19
Copy link
Contributor

uhbif19 commented Mar 29, 2024

          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 #24 (comment)

@uhbif19
Copy link
Contributor Author

uhbif19 commented Jun 1, 2024

@euonymos BTW while profiling CEM script I did not seen any crypto impact on flamechart.

While PSM takes only part of CEM test time, it seems plausible to me that crypto does take much time, cuz Ledger takes really large time and hashing seem not. I checked blake2 with Python intepreter, it takes around a second to count such hash on 70k byte string 10k times. Maybe it is different for signing though.

Also I am not sure what how to mock it :D

@euonymos euonymos added the enhancement New feature or request label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants