Open zhenfeizhang opened 2 years ago
q = 21888242871839275222246405745257275088548364400416034343698204186575808495617
z = 5
[ 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 } }
Summary
refactoring MDS component in Poseidon so it can be used by Rescue
Proposal
q = 21888242871839275222246405745257275088548364400416034343698204186575808495617
, we havez = 5
, that is, we can use the echelon form of the following matrix :Concretely:
For Admin Use