Page MenuHomePhabricator

[commtest] Add helpers for ED25519 signing messages
ClosedPublic

Authored by bartek on Mar 28 2024, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 11:25 AM
Unknown Object (File)
Thu, Apr 11, 5:17 PM
Unknown Object (File)
Wed, Apr 10, 9:29 PM
Unknown Object (File)
Fri, Apr 5, 8:52 AM
Unknown Object (File)
Thu, Apr 4, 10:20 PM
Unknown Object (File)
Tue, Apr 2, 8:20 PM
Unknown Object (File)
Sun, Mar 31, 2:00 PM
Unknown Object (File)
Sun, Mar 31, 2:00 PM
Subscribers

Details

Summary

Added some utilities to Commtest that imitate OlmAccount.sign() which is used for nonce challenge in our RPCs

All dependencies already used elsewhere

Test Plan

Commtest compiles, other tests pass. Logic tested in the next diff

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Mar 29 2024, 12:18 AM
bartek added a reviewer: kamil.
bartek added inline comments.
services/commtest/Cargo.toml
28 ↗(On Diff #38526)
  • ed25519-dalek version 1. is incompatible with rand 0.8
  • upgrading ed25519-dalek to version 2 causes conflicts with comm-opaque2 using some incompatible curve25519-dalek
  • downgrading rand to 0.7 solves the issue
services/commtest/src/identity/mod.rs
64–68 ↗(On Diff #38526)

This is for Clippy - implementing new() with no args suggests creating a Default impl too

This revision is now accepted and ready to land.Tue, Apr 2, 1:38 AM