Dbg init test

This commit is contained in:
Aleksey Kashapov 2023-10-26 18:48:51 +03:00
parent 8fef70c2da
commit 38741021dd
No known key found for this signature in database
GPG Key ID: E7A24E92707DA3D0

View File

@ -143,6 +143,19 @@ init(C) ->
EncPrivateKeys = enc_private_keys(C),
SigPrivateKeys = sig_private_keys(C),
EncryptedMasterKeyShares = kds_keyring_client:start_init(Threshold, root_url(C)),
%% DEBUG
_ = ?assertMatch(
#{
status := not_initialized,
activities := #{
initialization := #{
phase := validation,
validation_shares := #{}
}
}
},
kds_ct_utils:await_initialization_phase(validation, root_url(C), 1000, 100)
),
_ = ?assertEqual(length(EncryptedMasterKeyShares), length(Shareholders)),
DecryptedMasterKeyShares = kds_ct_keyring:decrypt_and_sign_masterkeys(
EncryptedMasterKeyShares,