Module network_clique::mock
source · Structs§
- A mock public key for verifying signatures.
- A mock secret key that is able to sign messages.
- A mock signature, able to discern whether the correct key has been used to sign a specific message.
- A mock that can be split into two streams.
- Bidirectional in-memory stream that closes abruptly after a specified number of poll_write calls.
- A stream that can be split into two instances of UnreliableDuplexStream.
Constants§
Functions§
- Create a random key pair.
- Create a HashMap with public keys as keys and secret keys as values.