Skip to content
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

feat(examples): add sealed bidding package #2956

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thinhnx-var
Copy link
Contributor

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

This package supports sealed bidding an object.
It divides the bidding process into 2 phase:

  • CommitHash phase: Submit the calculated hash from dapps / realms. This hash string is combined from a secret string and the price.
  • CommitPrice phase: Submit the secret string and the price, compare with previous submitted hash string. If it is correct, then your price is recognized.

Each phase has its own duration, and everyone can submit once per phase.

I mark this PR WIP in oder to review it again.

@thinhnx-var thinhnx-var requested review from a team as code owners October 16, 2024 02:34
@thinhnx-var thinhnx-var requested review from jaekwon and petar-dambovaliev and removed request for a team October 16, 2024 02:34
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Oct 16, 2024
@thinhnx-var thinhnx-var reopened this Oct 16, 2024
@thinhnx-var thinhnx-var marked this pull request as draft October 16, 2024 02:35
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

This PR is stale because it has been open 3 months with no activity. Remove stale label or comment or this will be closed in 3 months.

@github-actions github-actions bot added Stale and removed Stale labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: In Progress
Status: Backlog
Development

Successfully merging this pull request may close these issues.

1 participant