Skip to content

Commit

Permalink
start jwk consensus for google (#12053)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjma authored Feb 16, 2024
1 parent 23e7d06 commit 7211166
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Initialize AIP-67 parital governance voting.
script {
use aptos_framework::aptos_governance;
use aptos_framework::jwks;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(
proposal_id,
@0x1,
{{ script_hash }},
);
jwks::initialize(&framework_signer);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Start JWK Consensus for Google.
script {
use aptos_framework::aptos_governance;
use aptos_framework::jwks;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(
proposal_id,
@0x1,
{{ script_hash }},
);

jwks::upsert_oidc_provider(
&framework_signer,
b"https://accounts.google.com",
b"https://accounts.google.com/.well-known/openid-configuration"
);
}
}
9 changes: 9 additions & 0 deletions aptos-move/aptos-release-builder/data/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ proposals:
discussion_url: "https://github.com/aptos-foundation/AIPs/issues/331"
execution_mode: MultiStep
update_sequence:
- RawScript: aptos-move/aptos-release-builder/data/proposals/aip_67_initialization.move
- FeatureFlag:
enabled:
- jwk_consensus
Expand Down Expand Up @@ -160,3 +161,11 @@ proposals:
- FeatureFlag:
enabled:
- zk_id_signature
- name: step_13_start_watching_google_jwks
metadata:
title: "Start JWK consensus for Google"
description: "JWK Consensus (AIP-67) for Google enables Google-based OIDB accounts (AIP-61)."
discussion_url: "TBA"
execution_mode: MultiStep
update_sequence:
- RawScript: aptos-move/aptos-release-builder/data/proposals/start_jwk_consensus_for_google.move

0 comments on commit 7211166

Please sign in to comment.