-
Notifications
You must be signed in to change notification settings - Fork 83
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
[Framework] Random Number on-chain solution #759
Comments
How about generating random seed in Rust and stored in TxContext, and then read it in contract? |
It is unverifiable |
May the verifiable feature is not required unless we have consensus mechanism? |
The transaction needs to be synced to another executor or proposer node, so the execution result must be determinate. Maybe we can put the sequencer's transaction witness data in the TxContext, and sync the transaction and witness data together. #771 |
ZK-VRF please refer: https://github.com/zkvrf/zkvrf |
A simple solution:
pub struct TransactionSequenceInfo {
/// The tx order
pub tx_order: u128,
/// The tx order signature, it is the signature of the sequencer to commit the tx order.
pub tx_order_signature: Authenticator,
/// The tx accumulator root after the tx is append to the accumulator.
pub tx_accumulator_root: H256,
} Or can we directly use the |
Is the second issue |
Make this TBD |
The text was updated successfully, but these errors were encountered: