revaultd icon indicating copy to clipboard operation
revaultd copied to clipboard

Add a test for checking `KeyNotInDescriptor` error

Open danielabrozzoni opened this issue 3 years ago • 0 comments

We return an error if the user gives us a cpfp private key that is not contained in the cpfp descriptor:

https://github.com/revault/revaultd/blob/d4d78e368db8dd4e6b09a1d06013e7036520428e/src/daemon/revaultd.rs#L412

This needs to be unit tested, the right place to do so is probably here:

https://github.com/revault/revaultd/blob/d4d78e368db8dd4e6b09a1d06013e7036520428e/src/daemon/revaultd.rs#L688

danielabrozzoni avatar Dec 14 '21 11:12 danielabrozzoni