traits icon indicating copy to clipboard operation
traits copied to clipboard

crypto-common: fallible alternative to `KeyInit`

Open tarcieri opened this issue 8 months ago • 3 comments

I was looking at using KeyInit with elliptic-curve, but for that application we need to return an error in the event the deserialized integer for the key overflows the curve's order.

Perhaps there could be a fallible equivalent to KeyInit like TryKeyInit?

tarcieri avatar Jun 08 '25 14:06 tarcieri

Sounds good to me. I wonder whether we should add a blanket impl of TrykeyInit for T: KeyInit.

newpavlov avatar Jun 09 '25 09:06 newpavlov

@tarcieri Since you closed #2092, what do you plan to do with this issue? Should it be closed as "not planned"?

newpavlov avatar Nov 23 '25 21:11 newpavlov

Can make another attempt after #2096

tarcieri avatar Nov 23 '25 21:11 tarcieri