Skip to content

Commit

Permalink
chore: Fix typos in readme and prepare release (#13)
Browse files Browse the repository at this point in the history
* Bump version to v1.1.0 to publish the next release
* Fix reference to crate in the examples in the readme
  • Loading branch information
Frederik Rothenberger authored Aug 6, 2024
1 parent b6fce5b commit bb1bf7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Library for creating canister signatures on the Internet Computer
documentation = "https://docs.rs/ic-canister-sig-creation"
keywords = ["internet-computer", "canister", "utility", "icp", "dfinity"]
categories = ["cryptography", "data-structures", "no-std", "wasm"]
version = "1.0.1"
version = "1.1.0"
edition = "2021"
license = "Apache-2.0"
include = ["src", "Cargo.toml", "LICENSE", "README.md"]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Creating a signature is a two-step process:
In order to bridge the two steps, the canister has to keep state about the prepared signatures:

```rust
use canister_sig_util::signature_map::SignatureMap;
use ic_canister_sig_creation::signature_map::SignatureMap;

thread_local! {
/// Prepared canister signatures, no need to keep them in stable memory as they are only kept for one minute
Expand All @@ -32,7 +32,7 @@ thread_local! {
To prepare a signature on a message, add it's `hash` to the signature map together with the `seed` used to generate the public key:

```rust
use canister_sig_util::hash_bytes;
use ic_canister_sig_creation::hash_bytes;

/// The signature domain should be unique for the context in which the signature is used.
const SIG_DOMAIN: &[u8] = b"ic-example-canister-sig";
Expand All @@ -52,7 +52,7 @@ fn add_signature(seed: &[u8], message: &[u8]) {
Then update the `certified_data` to the new root hash of the signature map:

```rust
use canister_sig_util::signature_map::LABEL_SIG;
use ic_canister_sig_creation::signature_map::LABEL_SIG;
use ic_cdk::api::set_certified_data;

fn update_root_hash() {
Expand Down

0 comments on commit bb1bf7c

Please sign in to comment.