Comments (4)
This question may just be an artifact of our old hash_to_curve implementation. Let's return to this issue after #5 to see if we need to resolve it.
from mithril.
Is there a benefit from not using whatever cardano is using? Is cardano calling a rust or a C library? (libsodium)
Ideally hash functions should be easy to replace. Cautionary tale of MD5 being very hard to remove reliably from legacy software.
from mithril.
Indeed it is very easy to change the hash. It is only fixed by our implementation in two places (one for the dense mapping, one for hash_to_curve
, so these choices are somewhat independent). We're also parameterized by the hashing strategy for the Merkle Tree (our tests use Sha3
but that can be changed easily as well).
We're actually only relying on Blake2b
/Sha3
implementing traits from digest
, so it should be straightforward to swap out another hash in msp::eval
and hash_to_curve
. If you'd like we can use something other than Blake2b
, presumably most hashes would have a similar interface even if they do not implement these traits.
from mithril.
We used SHA because the Blake2b library we use does not support output lengths we need - error at runtime for length 300+.
could you give an example of where it breaks at runtime? I'm guessing that length 300+ is bits, right? not bytes? If I recall correctly, we don't need output lengths higher than 300 bytes, but I might be missing something. I made a PR #24 removing sha3, and it seems to work for now.
Blake2b is good for now. It is our default choice in Cardano
from mithril.
Related Issues (20)
- Refactor Cardano transactions database layer in persistence for signer and aggregator
- Cardano signatures are not produced on `testing-sanchonet` and `testing-mainnet` HOT 1
- Explorer display in/out SPOs in registered signers page
- Prototype optimizations for increasing Cardano transactions proof generation throughput HOT 1
- Access registered signers for latest epoch in explorer
- Remove `snapshot` command in client CLI
- Use a new GitHub Action for creating releases
- Warmup import Cardano transactions at node startup
- Lock signature of signed entity types during warm-up
- Prepare `testing-sanchonet` for respin with Cardano `8.11-pre`
- Release `2423` distribution
- Sign Cardano transactions with ChainPoint based beacon
- Implement Resource Pooling for Block Range Merkle maps HOT 1
- Performance optimizations for Cardano transactions signature/proof
- Document Cardano transactions signature and proving in website
- Low latency signature of Cardano transactions
- Block Streamer returns `ChainScannedBlocks`
- Import Cardano transactions with `ChainReader`
- SQLite WAL files are not truncated in signer and aggregator
- Remove connections coupling with providers in database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mithril.