traits icon indicating copy to clipboard operation
traits copied to clipboard

signature: `SignerMut` blanket impl prevents custom implementation

Open carloskiki opened this issue 8 months ago • 1 comments

I have a signing key which can "evolve" (key evolving signature a.k.a. forward secure signature). SignerMut is supposed to simplify the process of signing and evolving the key at the same time. However, if I want that to be the case, I must only implement SignerMut, because Signer provides a blanket implementation and there is a conflict. I want to be able to simply sign a message if desired (i.e., impl Signer) but also want the ability to implement SignerMut so that the key evolves (the blanket impl has the same behavior as Signer).

One way of doing this would be to remove the blanket impl on SignerMut, but that I believe is a breaking change.

carloskiki avatar Jun 24 '25 23:06 carloskiki

We’re in the process of making breaking changes to signature now, so this change is possible

tarcieri avatar Jun 24 '25 23:06 tarcieri

Fixed in #1915

tarcieri avatar Jul 06 '25 15:07 tarcieri