Comments (2)
I agree this will be useful, though I note a stopgap would be to regenerate the parameters on deserialization — which may be tolerable for use cases where the public parameters are cached in memory (which probably makes sense).
I haven't given thought to the typenum issue, but will something like this work? https://www.reddit.com/r/rust/comments/5z3t5j/hey_rustaceans_got_an_easy_question_ask_here/dewmhjl/?context=3
If you have thoughts, a PR would be welcome.
cc: @vmx, @johnchandlerburnham, @dignifiedquire — all of whom may have insight and/or bandwidth.
Also note: in the future, it may be that only a single arity is required in the public parameters, in which case some of this complexity might disappear. (The idea is to support the Nova random oracle via sponge in Neptune, so there is no dependence on either the number of elements to be absorbed or on the arity of the the inner function F.)
Given that, if the typenum issue turns out to be problematic, it might be easier to wait — although I realize this wouldn't address the general problem of serialization/deserialization for Neptune.
from neptune.
Thanks. I'll wait for you'll to remove the dependency. The typenum package provides an optional serde feature but only for generic-array and not arraylength. Is there an issue I can subscribe to track the Nova sponge support? Also, it seems problematic to support serde as an optional feature in Neptune because of the use of bounds constraints in structs and implementations. It seems as though to use serde derive you need to have one copy of a struct or impl for when the serde feature is enabled and when it is not. Would you want serde to be an optional feature? Thanks.
from neptune.
Related Issues (20)
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 3
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 3
- dev needs to be rebased on main HOT 23
- Feature Request: Implementation of Poseidon2 Hash Function HOT 4
- dev needs to be rebased on main HOT 5
- dev needs to be rebased on main HOT 16
- dev needs to be rebased on main HOT 22
- dev needs to be rebased on main HOT 18
- Reporting rebasing need only once HOT 1
- CI: push tests vs merge groups
- dev needs to be rebased on main HOT 5
- Add a CITATION.cff to the repo
- dev needs to be rebased on main HOT 2
- chore: rust toolchain needs an upgrade
- chore: some installed deps are not needed HOT 1
- chore: some installed deps are not needed
- chore: rust toolchain needs an upgrade
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 neptune.