Skip to content

Commit 07a9ca7

Browse files
ibalajiarunclaude
andcommitted
[release] Add release yaml to enable ChunkyDKG V1
Single-step proposal that switches the on-chain ChunkyDKG config to ConfigV1 (1/2 secrecy, 2/3 reconstruction). Assumes the encrypted-mempool framework resources are already initialized on the target network. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 505c576 commit 07a9ca7

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
remote_endpoint: ~
3+
name: "enable-chunky-dkg-v1"
4+
proposals:
5+
- name: enable_chunky_dkg_v1
6+
metadata:
7+
title: "Enable ChunkyDKG V1"
8+
description: "Enable ChunkyDKG in full V1 mode (1/2 secrecy, 2/3 reconstruction). Assumes encrypted-mempool framework resources are already initialized."
9+
execution_mode: MultiStep
10+
update_sequence:
11+
- RawScript: aptos-move/aptos-release-builder/data/proposals/enable_chunky_dkg_v1.move
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Enable ChunkyDKG (ConfigV1) — full activation, replacing regular DKG.
2+
// Prerequisite: ChunkyDKG framework resources must already be initialized
3+
// (see encrypted_mempool_initialization.move).
4+
script {
5+
use aptos_framework::aptos_governance;
6+
use aptos_framework::chunky_dkg_config;
7+
use aptos_std::fixed_point64;
8+
9+
fun main(proposal_id: u64) {
10+
let framework = aptos_governance::resolve_multi_step_proposal(
11+
proposal_id,
12+
@0x1,
13+
{{ script_hash }},
14+
);
15+
16+
let config = chunky_dkg_config::new_v1(
17+
fixed_point64::create_from_rational(1, 2), // secrecy_threshold: 1/2
18+
fixed_point64::create_from_rational(2, 3), // reconstruction_threshold: 2/3
19+
);
20+
chunky_dkg_config::set_for_next_epoch(&framework, config);
21+
aptos_governance::reconfigure(&framework);
22+
}
23+
}

0 commit comments

Comments
 (0)