libsodium icon indicating copy to clipboard operation
libsodium copied to clipboard

VerifyKey.public_key must be public

Open Mahmoud-Emad opened this issue 2 years ago • 3 comments

When I want to generate a new verify key I call this method new_signing_key and then it will generate a new signing key containing verify_key and public_key inside it.

    verify_key: libsodium.VerifyKey{
        public_key: [3,21,......]
    }
}

What i want to access this public_key, I did

 verify_key.public_key

and because this is not public I can't access it and got this error

 error: field `libsodium.VerifyKey.public_key` is not public

so there is any way to do it or i can edit it and make a pull request? thanks

Mahmoud-Emad avatar Jul 26 '22 14:07 Mahmoud-Emad

of course, you can submit a PR

medvednikov avatar Jul 26 '22 15:07 medvednikov

of course, you can submit a PR

So can you please give me permission to do it?

Mahmoud-Emad avatar Jul 26 '22 15:07 Mahmoud-Emad

you don't need a permission to submit a PR

medvednikov avatar Jul 26 '22 16:07 medvednikov