Right now, the get_public_key and get_private_key functions return a const pointer into the live copy of the public/private key. What that implies is that we really assume that the application won't overwrite those buffers, and if they do, bad things would happen.
Now, we could view as such an overwrite is violating the API, and so we needn't care about these bad things. On the other hand, keeping a spare copy of the public and private keys would be safer.
This issue is to ask whether it's worth going to that extent
Right now, the get_public_key and get_private_key functions return a const pointer into the live copy of the public/private key. What that implies is that we really assume that the application won't overwrite those buffers, and if they do, bad things would happen.
Now, we could view as such an overwrite is violating the API, and so we needn't care about these bad things. On the other hand, keeping a spare copy of the public and private keys would be safer.
This issue is to ask whether it's worth going to that extent