Add `Signer::try_sign` method and cleanup usage
modified radicle-crypto/src/lib.rs
@@ -1,4 +1,3 @@
| - | |
|
|
|
|
|
@@ -20,37 +19,30 @@ pub struct Verified;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-crypto/src/test/signer.rs
@@ -1,4 +1,4 @@
| - | |
| + | |
|
|
|
|
|
@@ -62,4 +62,8 @@ impl Signer for MockSigner {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
modified radicle-node/src/service/message.rs
@@ -247,7 +247,7 @@ pub enum AnnouncementMessage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -407,11 +407,11 @@ impl Message {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/gossip.rs
@@ -29,7 +29,7 @@ pub fn messages(count: usize, now: LocalTime, delta: LocalDuration) -> Vec<Messa
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/test/tests.rs
@@ -202,7 +202,7 @@ fn test_inventory_sync() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/identity/project.rs
@@ -137,7 +137,7 @@ impl Doc<Verified> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/profile.rs
@@ -15,7 +15,7 @@ use std::{env, io};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,6 +45,10 @@ impl Signer for UnsafeSigner {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/rad.rs
@@ -47,7 +47,7 @@ pub fn init<G: Signer>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -114,7 +114,7 @@ pub enum ForkError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -150,7 +150,7 @@ pub fn fork_remote<G: Signer, S: storage::WriteStorage>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -179,7 +179,7 @@ pub fn fork<G: Signer, S: storage::WriteStorage>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/storage.rs
@@ -304,7 +304,7 @@ pub trait WriteRepository: ReadRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/storage/git.rs
@@ -638,10 +638,10 @@ impl WriteRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -751,7 +751,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -893,7 +893,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/storage/refs.rs
@@ -7,7 +7,7 @@ use std::ops::{Deref, DerefMut};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -36,6 +36,8 @@ pub enum Updated {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -84,13 +86,13 @@ impl Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/test/fixtures.rs
@@ -9,7 +9,7 @@ use crate::storage::git::Storage;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -22,14 +22,7 @@ pub fn storage<P: AsRef<Path>, G: Signer>(path: P, signer: G) -> Result<Storage,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -39,7 +32,7 @@ pub fn storage<P: AsRef<Path>, G: Signer>(path: P, signer: G) -> Result<Storage,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/test/storage.rs
@@ -151,7 +151,7 @@ impl WriteRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|