mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
add test_new_os_random_initialization
This commit is contained in:
parent
5dba3856bf
commit
7d0ff2df30
@ -140,6 +140,17 @@ mod tests {
|
||||
assert_eq!(decrypted_data, plaintext);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_new_os_random_initialization() {
|
||||
// Ensure that AddressKeyHolder is initialized correctly
|
||||
let address_key_holder = AddressKeyHolder::new_os_random();
|
||||
|
||||
// Check that key holder fields are initialized with expected types and values
|
||||
assert!(!Into::<bool>::into(address_key_holder.nullifer_public_key.is_identity()));
|
||||
assert!(!Into::<bool>::into(address_key_holder.viewing_public_key.is_identity()));
|
||||
assert!(address_key_holder.address.as_slice().len() > 0); // Assume TreeHashType has non-zero length for a valid address
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn key_generation_test() {
|
||||
let seed_holder = SeedHolder::new_os_random();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user