Skip to content

Commit 9f4976e

Browse files
committed
Add appropriate aad for dev account bundles
1 parent d6a0eb8 commit 9f4976e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

timeboost-utils/src/load_generation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ pub fn make_dev_acct_bundle(
7575
// encrypt bundle
7676
let data = bundle.data();
7777
let plaintext = Plaintext::new(data.to_vec());
78-
let ciphertext = DecryptionScheme::encrypt(&mut rng, pubkey, &plaintext, &vec![])?;
78+
let aad = b"threshold".to_vec();
79+
let ciphertext = DecryptionScheme::encrypt(&mut rng, pubkey, &plaintext, &aad)?;
7980
let encoded = serialize(&ciphertext)?;
8081
bundle.set_encrypted_data(encoded.into());
8182
}

0 commit comments

Comments
 (0)