ec.Signature is not fully available in Typescript
JessicaMulein opened this issue · 0 comments
JessicaMulein commented
I think there may be a conflict between the ec class and namespace, but ec.Signature is not available to me and I need to reconstitute a toDer('hex') to an ec.Signature..
Also, other typescript issues- had to make/do this
/**
* Generate an options object for the ECDSA signing key.
*/
public static get DataKeyPairOptions(): RSAKeyPairOptions<'pem', 'pem'> {
const args = {
modulusLength: StaticHelpers.AsymmetricKeyBits,
publicKeyEncoding: {
type: 'pkcs1',
format: 'pem',
},
privateKeyEncoding: {
type: 'pkcs1',
format: 'pem',
},
};
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return args;
}