We want to use the Tink library in our project to be able to verify some incoming signatures given a public key.
What we have are the following:
- The public key as a string
- The signature itself
- The plaintext
After going through Tink's documentation, we cannot figure out how to load the public key string so that it can be used by PublicKeyVerifyFactory.
Has anybody done anything similar? Have you found any examples online that could point us to the right direction?
Tink stores public keys in protobuf. One of these days I'll write some code that allows converting common public key formats such as PEM or JWK to protobuf, but until then I'm afraid that you'll have to write the code yourself (and contribute!).