Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Sep 11, 2024
1 parent e792bb5 commit e619f80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion examples/simple_sign_verify.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
use bip322::{sign_simple_encoded, verify_simple_encoded};

fn main() {
assert!(true);
let address = "bc1ppv609nr0vr25u07u95waq5lucwfm6tde4nydujnu8npg4q75mr5sxq8lt3";
let message = "Hello World";
let wif_private_key = "L3VFeEujGtevx9w18HD1fhRbCH67Az2dpCymeRE1SoPK6XQtaN2k";

let base64_signature = sign_simple_encoded(address, message, wif_private_key).unwrap();

assert!(verify_simple_encoded(address, message, &base64_signature).is_ok());
}
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ clippy:
ci: clippy
cargo fmt -- --check
cargo test --all
cargo run --examples simple_sign_verify
cargo run --example simple_sign_verify

fmt:
cargo fmt --all
Expand Down

0 comments on commit e619f80

Please sign in to comment.