Repository navigation
feat(contracts): [SC-011] Commit-Reveal Random Number Generator (RNG) with Slashing for Non-Disclosure - #1720
Open
p3ris0n wants to merge 1 commit into
Conversation
…redistribution [SC-011]
|
@p3ris0n Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This pull request implements key smart contracts for the Web3 Student Lab Post-Wave Production Deployment Initiative, covering on-chain cryptographic randomness, educational content management and verification, continuous token streaming, and multi-party treasury security.
Closes #1632
Closes #1633
Closes #1629
Closes #1630
Detailed Changes by Module
1. [SC-011] Commit-Reveal Random Number Generator (RNG) with Slashing for Non-Disclosure
Closes #1632
contracts/commit_reveal_rng/src/lib.rscontracts/commit_reveal_rng/src/entropy.rscontracts/commit_reveal_rng/src/slashing.rscommit_with_deposit).xor_bytes32,accumulate_entropy) across valid salt disclosures, hashed via SHA-256 upon finalization (finalize_entropy) to guarantee uniform random output resistant to single-party bias.slash_non_revealers), and redistributes confiscated collateral equally among honest participants (redistribute_slashed_stake).2. [SC-012] On-Chain Content Management System (CMS) with Versioned Content Merkle Roots
Closes #1633
contracts/content_management_system/src/lib.rscontracts/content_management_system/src/versioning.rs3. [SC-008] Real-Time Sablier-Style Payment Streaming Contract with Cliff & Cancellation Refunds
Closes #1629
contracts/payment_streaming/src/lib.rscontracts/payment_streaming/src/stream.rscontracts/payment_streaming/src/types.rs4. [SC-009] Multisig Wallet Contract with M-of-N Thresholds, Time-Locks & Emergency Freeze
Closes #1630
contracts/multisig_wallet_timelock/src/lib.rscontracts/multisig_wallet_timelock/src/signers.rscontracts/multisig_wallet_timelock/src/execution.rsAcceptance Criteria Checklist
Verification & Testing
cargo test --workspace).