Skip to content
New issue

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

How to sign a message? (I need help) #206

Open
Myzel394 opened this issue Jan 18, 2023 · 1 comment
Open

How to sign a message? (I need help) #206

Myzel394 opened this issue Jan 18, 2023 · 1 comment

Comments

@Myzel394
Copy link

Hey, so I'm new to this package and generally new to Rust. Let's say I have a private key and a message I want to sign, how do I do that?

Here's my code so far

const PRIVATE_KEY: &str = "<private key>";

#[tokio::main]
async fn main() {
    let message = "Hello.".to_str();
}

Yeah I really don't know how to start. I took a look at the tests, but I honestly don't understand them. Can you point me to the right direction on how to start?

@dfabregat
Copy link

dfabregat commented Feb 10, 2023

Hi @Myzel394, maybe the examples in this repo can be of help: https://github.com/granitDev/rPGP-Working-Examples

Saw it here: #200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants