Skip to content

Commit

Permalink
enclave signer nonce must increase by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Feb 25, 2025
1 parent 7b9dfd2 commit 8100f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-libs/stf/src/stf_sgx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ where
// no signature check will happen. Still, we need to supply that field with a fake value.
let fake_signature =
Signature::Sr25519([0u8; 64].as_slice().try_into().expect("must work"));
let enclave_nonce = System::account_nonce(enclave_signer_account::<AccountId>());
let enclave_nonce = System::account_nonce(enclave_signer_account::<AccountId>()).saturating_add(1);
let genesis_hash = shielding_target_genesis_hash().unwrap_or_default();
for account in accounts {
info!("force unshield all for {:?}", account_id_to_string(&account));
Expand Down

0 comments on commit 8100f99

Please sign in to comment.