elliptic icon indicating copy to clipboard operation
elliptic copied to clipboard

How to convert a DER-formatted signature back to a Signature object?

Open fauxbytes opened this issue 1 year ago • 1 comments

Given:

let sig = ecKey.sign(msg);
let sigDerHex = sig.toDER('hex');

Is there a way to rehydrate sigDerHex back to a Signature Object?

Many thanks!

fauxbytes avatar Mar 11 '23 04:03 fauxbytes

Project looks dead. The Signature constructor is capable of performing the conversion, but this has not been exposed for some reason.

no-longer-human avatar Feb 01 '24 16:02 no-longer-human