mirror of
https://github.com/valitydev/kds.git
synced 2024-11-06 00:05:18 +00:00
Dbg init test
This commit is contained in:
parent
8fef70c2da
commit
38741021dd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user