We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
packet::write_packet
I learned about generating a signature packet in the document, but I cannot get that packet back into a Signature type.
Signature
I tried to use Signature::from_slice(Version::New, &sig_data), but it failed with Pgp(ParsingError(MapOpt)).
Signature::from_slice(Version::New, &sig_data)
Pgp(ParsingError(MapOpt))
The text was updated successfully, but these errors were encountered:
If you are interested, this is my failed test:
https://github.com/Jisu-Woniu/digital-signature/blob/eaf8540e90d3e6b1a23778f198c65e0108e9e049/src-tauri/crypto/src/signing.rs#L101
Sorry, something went wrong.
I managed to resolve it by using PacketParser, the code seems ugly but it finally worked!
PacketParser
https://github.com/Jisu-Woniu/digital-signature/blob/34e9fa99a2bedb7e6afd1b9bec9fa246ab798f56/src-tauri/crypto/src/signing.rs#L137-L143
No branches or pull requests
I learned about generating a signature packet in the document, but I cannot get that packet back into a
Signature
type.I tried to use
Signature::from_slice(Version::New, &sig_data)
, but it failed withPgp(ParsingError(MapOpt))
.The text was updated successfully, but these errors were encountered: