Skip to content

Commit e418186

Browse files
authored
Submit new JWKs to consensus and commit them to the chain (#13530)
## Description First part of tracking JWKs via consensus. Outline of PR: - every node fetches JWKs periodically, submits them to consensus as NewJWKFetched messages - consensus_handler counts the votes, and adds AuthenticatorStateUpdate transactions to checkpoints. - After execution, the node adds the new JWKs to the local signature verifier so that they can be used for verifying transactions. There is still some work remaining to support reconfiguration, that will be done in a subsequent PR. ## Test Plan Tests coming soon --- ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
1 parent 16d6218 commit e418186

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

move-compiler/src/sui_mode/id_leak.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ use crate::{
2525
use std::collections::BTreeMap;
2626

2727
use super::{
28-
CLOCK_MODULE_NAME, ID_LEAK_DIAG, OBJECT_MODULE_NAME, OBJECT_NEW_UID_FROM_HASH, SUI_ADDR_NAME,
29-
SUI_CLOCK_CREATE, SUI_SYSTEM_ADDR_NAME, SUI_SYSTEM_CREATE, SUI_SYSTEM_MODULE_NAME,
30-
UID_TYPE_NAME,
28+
AUTHENTICATOR_STATE_CREATE, AUTHENTICATOR_STATE_MODULE_NAME, CLOCK_MODULE_NAME, ID_LEAK_DIAG,
29+
OBJECT_MODULE_NAME, OBJECT_NEW_UID_FROM_HASH, SUI_ADDR_NAME, SUI_CLOCK_CREATE,
30+
SUI_SYSTEM_ADDR_NAME, SUI_SYSTEM_CREATE, SUI_SYSTEM_MODULE_NAME, UID_TYPE_NAME,
3131
};
3232

3333
pub const FRESH_ID_FUNCTIONS: &[(Symbol, Symbol, Symbol)] = &[
@@ -42,6 +42,11 @@ pub const FUNCTIONS_TO_SKIP: &[(Symbol, Symbol, Symbol)] = &[
4242
SUI_SYSTEM_CREATE,
4343
),
4444
(SUI_ADDR_NAME, CLOCK_MODULE_NAME, SUI_CLOCK_CREATE),
45+
(
46+
SUI_ADDR_NAME,
47+
AUTHENTICATOR_STATE_MODULE_NAME,
48+
AUTHENTICATOR_STATE_CREATE,
49+
),
4550
];
4651

4752
//**************************************************************************************************

move-compiler/src/sui_mode/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ pub const SUI_SYSTEM_CREATE: Symbol = symbol!("create");
3737
pub const CLOCK_MODULE_NAME: Symbol = symbol!("clock");
3838
pub const CLOCK_TYPE_NAME: Symbol = symbol!("Clock");
3939
pub const SUI_CLOCK_CREATE: Symbol = symbol!("create");
40+
pub const AUTHENTICATOR_STATE_MODULE_NAME: Symbol = symbol!("authenticator_state");
41+
pub const AUTHENTICATOR_STATE_TYPE_NAME: Symbol = symbol!("AuthenticatorState");
42+
pub const AUTHENTICATOR_STATE_CREATE: Symbol = symbol!("create");
4043

4144
//**************************************************************************************************
4245
// Diagnostics

move-symbol-pool/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ static_symbols!(
7070
"TxContext",
7171
"ID",
7272
"SUI",
73+
"authenticator_state",
74+
"AuthenticatorState",
7375
);
7476

7577
/// The global, unique cache of strings.

0 commit comments

Comments
 (0)