pebble-stark icon indicating copy to clipboard operation
pebble-stark copied to clipboard

migrate randomness

Open thor314 opened this issue 1 year ago • 2 comments

migrate randomness. Relatively small part of the code-base, will rely on finding a decent blake2 hashing library.

thor314 avatar Nov 01 '23 13:11 thor314

https://docs.rs/blake2/latest/blake2/ for blake, any thoughts on this? https://docs.rs/blake2/latest/blake2/type.Blake2s256.html also this is a similar type to https://github.com/starkware-libs/stone-prover/blob/main/src/starkware/crypt_tools/blake2s.inl#L93-L101 as far i can understand for now

agnxsh avatar Nov 02 '23 11:11 agnxsh

That seems reasonable, it would also be good to keep the randomness generator generic over the hash function of choice, so that we may potentially support other hashes in the future if you'd like to tackle that

thor314 avatar Nov 02 '23 15:11 thor314