Page MenuHomePhabricator

[commtest] Add helpers for ED25519 signing messages
ClosedPublic

Authored by bartek on Mar 28 2024, 10:46 PM.
Tags
None
Referenced Files
F3505809: D11467.diff
Fri, Dec 20, 2:34 PM
Unknown Object (File)
Mon, Dec 16, 9:38 AM
Unknown Object (File)
Fri, Nov 29, 12:39 PM
Unknown Object (File)
Thu, Nov 28, 5:34 PM
Unknown Object (File)
Thu, Nov 28, 8:14 AM
Unknown Object (File)
Nov 12 2024, 10:55 PM
Unknown Object (File)
Nov 12 2024, 9:27 PM
Unknown Object (File)
Oct 18 2024, 6:26 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.Apr 2 2024, 1:38 AM