Describe the bug
Playing around with the library, I discovered the V2.generateKey('public') won't return the public key from the keypair.
Unless there is a simple way to re-generate the public key from the private one in Node.js, which I didn't find a simple method for, it would be nice to get an object from the generateKey() function that contains both private and public, keeping it fool-proof from people signing with the public key, but reusable to verify the PASETOs
What do you think ?
To Reproduceconst key = await V2.generateKey('public')
Expected behaviour
Returns the keypair for ease of use, also
Environment:
Describe the bug Playing around with the library, I discovered the
V2.generateKey('public')
won't return the public key from the keypair. Unless there is a simple way to re-generate the public key from the private one in Node.js, which I didn't find a simple method for, it would be nice to get an object from thegenerateKey()
function that contains both private and public, keeping it fool-proof from people signing with the public key, but reusable to verify the PASETOsWhat do you think ?
To Reproduce
const key = await V2.generateKey('public')
Expected behaviour Returns the keypair for ease of use, also Environment:
paseto
version: v2