Skip to content

Commit

Permalink
cleans up code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwatters committed Jan 31, 2024
1 parent e03f23d commit 521aa46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ license = "AGPL-3.0-only"
name = "ordinal_crypto"
readme = "README.md"
repository = "https://github.com/ordinarylabs/ordinal-crypto"
version = "0.5.4"
version = "0.5.5"

[dependencies]
aes = "0.8.3"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ let encrypted_content =
ordinal_crypto::content::encrypt(&fingerprint, &content, &pub_key).unwrap();

let (encrypted_content, encrypted_key) =
ordinal_crypto::content::extract_components_for_key_position(&encrypted_content, 0).unwrap();
ordinal_crypto::content::extract_components_for_key_position(&encrypted_content, 0)
.unwrap();

let decrypted_content = ordinal_crypto::content::decrypt(
Some(&verifying_key),
priv_key,

&encrypted_key,
&encrypted_content,
)
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ pub fn generate_exchange_keys() -> ([u8; 32], [u8; 32]) {
/// ordinal_crypto::content::encrypt(&fingerprint, &content, &pub_key).unwrap();
///
/// let (encrypted_content, encrypted_key) =
/// ordinal_crypto::content::extract_components_for_key_position(&encrypted_content, 0).unwrap();
/// ordinal_crypto::content::extract_components_for_key_position(&encrypted_content, 0)
/// .unwrap();
///
/// let decrypted_content = ordinal_crypto::content::decrypt(
/// Some(&verifying_key),
/// priv_key,
///
/// &encrypted_key,
/// &encrypted_content,
/// )
Expand Down

0 comments on commit 521aa46

Please sign in to comment.