Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: openpgp.readArmoredKey is not a function (OpenPGP.js v4.10.10 - 2021-01-24) #1231

Closed
Firehammer047 opened this issue Feb 10, 2021 · 0 comments

Comments

@Firehammer047
Copy link

Hi all,
First, awesome work on this project. I am able to generate keys with openpgp.generateKey() from dist/openpgp.min.js

But once I store the key in a variable and want to use it to sign cleartext I get this error:

TypeError: openpgp.readArmoredKey is not a function

The code was taken directly from your documentation.
https://github.com/openpgpjs/openpgpjs/blob/master/README.md

Seems readArmoredKey is defined somewhere I think, but since I'm not a JS developer I'm not very familiar with how it all works.

I also found openpgp.key.readArmored() defined somewhere.

Have you changed the functions and not updated the documentation?

Thanks for any insight in getting this to work.

@twiss twiss closed this as completed Feb 10, 2021
@openpgpjs openpgpjs locked and limited conversation to collaborators Feb 10, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants