forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 12
Feature/dkg integration #302
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
Draft
hsaleemsupra
wants to merge
95
commits into
dev
Choose a base branch
from
feature/dkg-integration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
47f6569
update validator pub keys to support dkg
hsaleemsupra b765729
adds blockmetadata flag
hsaleemsupra 451f716
featureflag for blockmetadataext
hsaleemsupra af3aa8a
add consenses_key support for past version
hsaleemsupra 5a1c866
add clan, family committee structure
hsaleemsupra 5801978
update dkg module to handle new dkg
hsaleemsupra d1c7590
change dkg.move to use DkgNodeConfig
hsaleemsupra dcad926
on going changes
hsaleemsupra cbf7cc6
moved dkg transaction validation to aptosvm
hsaleemsupra 439f93c
adds dkg transaction to post bls pk shares
hsaleemsupra c3b7468
removed author from dkgmeta
hsaleemsupra 4aca943
supra dkg feature flag
hsaleemsupra 71a505e
update validator pub keys to support dkg
hsaleemsupra 769589e
adds blockmetadata flag
hsaleemsupra 353fd73
featureflag for blockmetadataext
hsaleemsupra 7051fa1
add consenses_key support for past version
hsaleemsupra ea317d2
add clan, family committee structure
hsaleemsupra 7496465
update dkg module to handle new dkg
hsaleemsupra 3787d0f
change dkg.move to use DkgNodeConfig
hsaleemsupra 7a659f5
on going changes
hsaleemsupra ed6d5b1
moved dkg transaction validation to aptosvm
hsaleemsupra 620029f
adds dkg transaction to post bls pk shares
hsaleemsupra c38ce7b
removed author from dkgmeta
hsaleemsupra 1b5a784
supra dkg feature flag
hsaleemsupra 33e0b87
rebase with dev
hsaleemsupra d580810
Merge branch 'feature/dkg-integration' of https://github.com/Entropy-…
hsaleemsupra 31b13ce
add dkg validator transaction validation
hsaleemsupra 9a06c1c
adds family check in dkg transaction validation
hsaleemsupra 44d8ace
minor
hsaleemsupra 5527465
adds feature gating for validator transaction execution
hsaleemsupra 3974c87
update dkg transaction execution validation
hsaleemsupra 7bb1775
temporarily support old consensus key
hsaleemsupra 47a7c2e
added identity to dkg node config
hsaleemsupra 08ed9fc
added dkg events
hsaleemsupra 4bcadd3
add consensus key rust type
hsaleemsupra 9c686ce
add dkg event try from for Contract event
hsaleemsupra e3450f9
changes to get dkg move state
hsaleemsupra 3dc355b
added DKGResharing struct
hsaleemsupra 77d67d3
emit dkg update events
hsaleemsupra e4a97b4
impl from dkg events to contract event
hsaleemsupra ef0d351
to_bytes for consensuskey
hsaleemsupra 74beaf5
update crypto version
hsaleemsupra e4a1229
update crypto
hsaleemsupra 8eb859f
update crypto
hsaleemsupra 04711e6
update crypto
hsaleemsupra ac4301a
update crypto
hsaleemsupra 308990e
update crypto
hsaleemsupra 3d14a98
validator key change and refactor
hsaleemsupra 0ce6350
Revert "validator key change and refactor"
hsaleemsupra 213ca23
updated validator public keys and refactoring
hsaleemsupra 8a73f43
ongoing changes
hsaleemsupra c0acc1f
add gas params for supra_stdlib
hsaleemsupra ae8bf13
fmt
hsaleemsupra ef5abf8
ongoing changes to address comments
hsaleemsupra 9365a3e
ongoing changes
hsaleemsupra 5ecc6b2
Merge branch 'dev' into feature/dkg-integration
hsaleemsupra 4933a68
minor fixes
hsaleemsupra f3f8daa
adds new method for ValidatorPublicKeys
hsaleemsupra 6caa8ee
new methods for DkgNodeConfig and DkgCommittee
hsaleemsupra 59184b3
update dkg committee to use validator address as identity
hsaleemsupra 8262e7a
add copyright statements
hsaleemsupra fa6a79f
Update validator_public_keys.move (#305)
so-schen 035efe5
minor fix
hsaleemsupra 1e65f2d
resharing config changed to per receiver committee
hsaleemsupra dd9daf8
add epoch, chain_id in onchainaggcommitments
hsaleemsupra ed59bad
update validator committee keys after dkg
hsaleemsupra f3788f0
fix test public key
hsaleemsupra 2186db9
changes to support arbitrary threshold types
hsaleemsupra 4e2853d
dkg for validity & quorum keys
hsaleemsupra 523a82e
[#2300] Feature flag.
isaacdoidge 3c3e600
Sc/task/issue 2242 patch2 (#306)
so-schen d6ec1b2
made compatible with the new key format
mzajac-supra f645798
added a fallback to the old format
mzajac-supra d4c23b6
parsing ed key by `try_from` instead of bcs
mzajac-supra dfa1949
Merge remote-tracking branch 'origin/dev' into feature/dkg-integration
hsaleemsupra b1c1426
Merge branch 'smr-moonshot-2300-consensus-keys-relaxation' into featu…
hsaleemsupra 486cf98
Update dkg.md
hsaleemsupra 3cd9b33
fixes
hsaleemsupra 9677938
conditional consensus key based on bls flag
hsaleemsupra b0ee778
update validator_config to use ValidatorPublicKeys
hsaleemsupra bfe8f54
update ValidatorPublicKeys to include bcft keys
hsaleemsupra 4a6200a
update gas ver
hsaleemsupra 5225a84
add supra_stdlib gas params to_on_chain_gas_schedule
hsaleemsupra 42ff45d
add randomness tag to block_prologue_ext
hsaleemsupra 9f3433c
temporarily mark randomness biasable
hsaleemsupra bcc44ad
add SUPRA_DKG to default features
hsaleemsupra f04b953
dkg module fixes
hsaleemsupra 5f41e34
fix dkg transactions error handling in vm
hsaleemsupra 56ef591
added dkg config
hsaleemsupra 3fd373f
dkg handles all bls key types
hsaleemsupra 0ccc796
remove dkg meta set condition for pk shares
hsaleemsupra 24000f8
adds dkg threshold type for receiver committees
hsaleemsupra 4e6e46c
removed error status DKG_META_NOT_SET
hsaleemsupra 79a96ab
distinguish error code for future/past epochs
hsaleemsupra 1e71f67
Merge from dev
dhaval-supraoracles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Supra Move Development Rules | ||
|
|
||
| CRITICAL: This is a Supra Move project, NOT Aptos Move. Never use aptos_framework. | ||
|
|
||
| ## Framework Rules: | ||
| 1. ALWAYS use supra_framework:: instead of aptos_framework:: | ||
| 2. Available namespaces: supra_framework::, std:: | ||
| 3. Main modules in supra_framework: config_buffer, create_signer, system_addresses, block, reconfiguration, reconfiguration_with_dkg, genesis, automation_registry, event, randomness, state_storage, transaction_fee, util, fungible_asset, multisig_account, function_info, validator_consensus_info, dispatchable_fungible_asset, aggregator_v2, aggregator_factory, chain_id, chain_status, consensus_config, execution_config, gas_schedule, pbo_delegation_pool, staking_config, staking_contract, storage_gas, supra_config, supra_governance, timestamp, transaction_validation, version, vesting, vesting_without_staking, supra_coin, account, supra_account | ||
| 4. Standard library modules: vector, table, borrow_mut, error, features, option, signer, string, fixed_point32 | ||
|
|
||
| ## Code Generation Rules: | ||
| - Use supra_framework::account for account operations | ||
| - Use supra_framework::supra_coin for native token operations | ||
| - Use supra_framework::timestamp for time operations | ||
| - Use supra_framework::event for event handling | ||
| - Use std::vector for vector operations | ||
| - Use std::table for table operations | ||
|
|
||
| ## Example Patterns: | ||
| ```move | ||
| module supra_framework::example { | ||
| use supra_framework::account; | ||
| use supra_framework::signer; | ||
| use std::vector; | ||
|
|
||
| public fun init(account: &signer) { | ||
| // Supra Move code | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| When generating Move code, ALWAYS use the Supra Move framework patterns above. |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this to
.gitignorefor now and remove it from the remote. We can discuss adding a ruleset like this with the rest of the team.