Generate a pkcs8 key suitable for ECDSA private key import using subtlecrypto
I need to generate a deterministic set ECDSA keys using zero dependencies javascript, for which I produce a pkcs8 key out of raw bytes and then import it as ECDSA private key. Is this logically possible and if so what’s wrong with the code below, as it gives me DataError
error during the import call.