Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Signed Peer Structure #603

Closed
8 tasks
nathanielc opened this issue Nov 20, 2024 · 0 comments · Fixed by #615
Closed
8 tasks

Create Signed Peer Structure #603

nathanielc opened this issue Nov 20, 2024 · 0 comments · Fixed by #615
Assignees

Comments

@nathanielc
Copy link
Collaborator

Description

We need a Rust structure that can be used to communicate the existence of a peer. This structure must (de)serialize as it will be used as the value of the Recon peers ring.

DOD

  • The Rust structure exists that implements serde traits
  • The structure contains the following information:
    • did:key of local peer
    • expiration time
    • list of multiaddrs on which the peer can be contacted
  • This structure should have methods to sign it and produce a compact string encoded JWS (ala data.data.data)
  • This structure should have methods to be constructed from a string encoded JWS that verifies its signature.
  • Unit tests for the construction serialization and signing/verification of the struct
nathanielc added a commit that referenced this issue Nov 21, 2024
These structures allow for communicating information about Peers and
their addresses. The structs can be signed as JWS and verified.

Fixes: #603
nathanielc added a commit that referenced this issue Nov 22, 2024
These structures allow for communicating information about Peers and
their addresses. The structs can be signed as JWS and verified.

Fixes: #603
github-merge-queue bot pushed a commit that referenced this issue Dec 4, 2024
* feat: add peer entry and peer key structs

These structures allow for communicating information about Peers and
their addresses. The structs can be signed as JWS and verified.

Fixes: #603

* fix: rebase fix test

* fix: use split_once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant