radicle-dev / radicle-link

The second iteration of the Radicle code collaboration protocol.
Other
423 stars 39 forks source link

refactor: extract crypto-related modules into crate #754

Closed kim closed 3 years ago

kim commented 3 years ago

In preparation for a cleaner separation of the replication v3, the pervasive PeerId type is made available as a standalone dependency link-crypto. Since it is merely a newtype around a public key, all other crypto-related modules (keys, signer) are bundled as well.

Because virtually every source file needs to be touched for this change, it tries to be as mechanical as possible, and doesn't introduce any other changes apart from moving files and adjusting imports. Specifically, no attempt is made to keep crate naming consistent (link- instead of radicle- or radicle-link- prefix). This would need to be addressed in a later patch.

Signed-off-by: Kim Altintop kim@eagain.st

kim commented 3 years ago

Edit: slim down direct dependencies of librad

kim commented 3 years ago

Edit: fix broken doc links