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

Refactoring MDS component #88

Open
4 tasks
zhenfeizhang opened this issue Apr 9, 2022 · 0 comments
Open
4 tasks

Refactoring MDS component #88

zhenfeizhang opened this issue Apr 9, 2022 · 0 comments

Comments

@zhenfeizhang
Copy link

zhenfeizhang commented Apr 9, 2022

Summary

refactoring MDS component in Poseidon so it can be used by Rescue

Proposal

[              1               1               1               1               1               1               1               1]
[              1               5              25             125             625            3125           15625           78125]
[              1              25             625           15625          390625         9765625       244140625      6103515625]
[              1             125           15625         1953125       244140625     30517578125   3814697265625 476837158203125]

Concretely:

pub(crate) struct MDS{
  ... 
}

impl Default for MDS {
  // use the rescue method
}

impl MDS {
 fn sample<R: Rng>(rng: &mut R)->Self{
   // use poseidon method
   // also need to decide if we want to do those three checks
 }
}

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@Pratyush Pratyush transferred this issue from arkworks-rs/sponge Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant