This diff introduces the function to make a signature for the string by the private key. The signature is needed to prove that the public key provided to the Tunnelbroker server belongs to the user during the session creation call.
This function is called during the session creating a call in D5931.
Details
The commtest app is successfully built and the tests are successfully passed in the following D5931.
Diff Detail
- Repository
- rCOMM Comm
- Branch
- commtest-helpers-sign-string
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
services/commtest/src/tunnelbroker/new_session.rs | ||
---|---|---|
27–29 ↗ | (On Diff #19549) | Not a fan of the unwrap()s, would really like to see with a Result<String, Error> being returned and we can just the try ? operator if possible. If that's going to be a pain (e.g. multiple return types) then we should at least use expect()s which we can search for if something does fail in the future. |
services/commtest/src/tunnelbroker/new_session.rs | ||
---|---|---|
27–29 ↗ | (On Diff #19549) |
I agree, it's better to use Anyhow::Result here and pass the errors to the caller. Thanks, @jon! |