Giter Site home page Giter Site logo

Comments (2)

porcuquine avatar porcuquine commented on September 9, 2024

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.

arthurgreef avatar arthurgreef commented on September 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.