Sam pfp
Sam
@sammdec.eth
Posting here just in case anyone knows of good in chain randomness solutions?
2 replies
2 recasts
4 reactions

mattdesl pfp
mattdesl
@mattdesl
Interesting. I guess it means that you are letting Coinbase provide the PRNG seed? In Bitframes I mix RANDAO with my own key that commit to earlier but only reveal after random execution. Maybe a system like that is possible? https://github.com/mattdesl/bitframes-randao
1 reply
0 recast
1 reaction

Sam pfp
Sam
@sammdec.eth
It turns out that L2’s (or maybe just Base) doesn’t have a RANDAO value (I think it’s a constant). So would have to go with a VRF value I think. I ideally need it within a function call. But maybe I could use your method in an offchain way and send it to the function in my contract. Do you know if your randao would be able to have the system setup procedurally or is there a certain amount of planning for each raffle
1 reply
0 recast
0 reaction

mattdesl pfp
mattdesl
@mattdesl
I wonder if you could use L1 RANDAO somehow, like with an oracle of sorts. It should be possible to automate—you could regularly post messages with the next raffle’s SHA commitment, and previous raffle’s revealed key.
2 replies
0 recast
1 reaction

Sam pfp
Sam
@sammdec.eth
Just dm’ed you with another question about the codebase
0 reply
0 recast
1 reaction

Sam pfp
Sam
@sammdec.eth
Yeah I like that idea and yes using the L1 RANDAO would be the way to do and pull it offchain and post those values to a function
0 reply
0 recast
0 reaction