Files
heartwood/radicle-cli/examples
Fintan Halpenny 0af233cceb cli: prevent missing delegate being added
It's necessary for a delegate's references to be present, e.g.
verification, calculating of canonical data, etc.

To ensure that a user does not get themselves into a state where they
have added a delegate without their references, prevent adding a
delegate to the identity document if their `rad/sigrefs` is not
present.

As well as this, it ensures that if there is a `rad/sigrefs` that it
has the default branch -- since it's possible for a peer to have created
`rad/sigrefs` through COBs without a default branch.

This change meant that the `rad-id` tests required the test scenarios
to be set up with all nodes having each other's references. A test
case to add a missing delegate was also added to `rad-id.md`.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-11-30 12:20:16 +01:00
..
2023-11-23 11:07:07 +01:00
2023-11-06 12:07:40 +01:00
2023-11-23 13:51:47 +01:00
2023-11-30 10:46:32 +01:00
2023-11-09 13:04:40 +01:00
2023-07-25 11:52:24 +02:00
2023-10-12 17:32:33 +02:00
2023-11-23 13:51:47 +01:00
2023-09-01 12:22:50 +02:00
2023-09-05 11:16:09 +02:00
2023-07-11 18:08:59 +02:00