1
0
mirror of synced 2025-02-12 15:56:44 +00:00

fix tests

This commit is contained in:
Youngjoon Lee 2024-11-28 17:16:32 +09:00
parent 844c22c7f2
commit cd8892ac04
No known key found for this signature in database
GPG Key ID: 303963A54A81DD4D

View File

@ -113,9 +113,10 @@ fn new_mix_configs(listening_addresses: Vec<Multiaddr>) -> Vec<TestMixSettings>
.iter()
.map(|(backend, private_key)| Node {
address: backend.listening_address.clone(),
// We use private key as a public key because the `MockMixMessage` doesn't differentiate between them.
// TODO: Convert private key to public key properly once the real MixMessage is implemented.
public_key: private_key.to_bytes(),
public_key: x25519_dalek::PublicKey::from(&x25519_dalek::StaticSecret::from(
private_key.to_bytes(),
))
.to_bytes(),
})
.collect::<Vec<_>>();