diff --git a/.github/actions/iota-sandbox/setup/action.yml b/.github/actions/iota-sandbox/setup/action.yml index 37f74287db..b62c175e7f 100644 --- a/.github/actions/iota-sandbox/setup/action.yml +++ b/.github/actions/iota-sandbox/setup/action.yml @@ -13,7 +13,7 @@ runs: cd sandbox # Use the output of https://api.github.com/repos/iotaledger/iota-sandbox/releases/latest DOWNLOAD_URL=$(curl "https://api.github.com/repos/iotaledger/iota-sandbox/releases" | jq -r '.[0].assets[] | select(.name | contains("iota_sandbox")) | .browser_download_url') - echo "Downloading private tangle from $DOWNLOAD_URL" + echo "Downloading sandbox from $DOWNLOAD_URL" curl -L -o iota_sandbox.tar.gz $DOWNLOAD_URL tar -xf iota_sandbox.tar.gz diff --git a/.github/actions/iota-sandbox/tear-down/action.yml b/.github/actions/iota-sandbox/tear-down/action.yml index 89a47b2d8f..8a0da1906e 100644 --- a/.github/actions/iota-sandbox/tear-down/action.yml +++ b/.github/actions/iota-sandbox/tear-down/action.yml @@ -8,5 +8,5 @@ runs: run: | cd iota-sandbox/sandbox docker-compose down - cd .. + cd ../.. sudo rm -rf iota-sandbox diff --git a/README.md b/README.md index 9413f09e00..8c1d535eed 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ identity_iota = { version = "1.0.0" } To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/examples), you can also do this: 1. Clone the repository, e.g. through `git clone https://github.com/iotaledger/identity.rs` -2. Start a private Tangle as described in the [next section](#example-creating-an-identity) +2. Start IOTA Sandbox as described in the [next section](#example-creating-an-identity) 3. Run the example to create a DID using `cargo run --release --example 0_create_did` ## Example: Creating an Identity The following code creates and publishes a new IOTA DID Document to a locally running private network. -See the [instructions](https://github.com/iotaledger/hornet/tree/develop/private_tangle) on running your own private network. +See the [instructions](https://github.com/iotaledger/iota-sandbox) on running your own private network for development. _Cargo.toml_ diff --git a/bindings/wasm/README.md b/bindings/wasm/README.md index f1d93f9b98..b7cee7a287 100644 --- a/bindings/wasm/README.md +++ b/bindings/wasm/README.md @@ -230,7 +230,7 @@ import init, { Client } from "@iota/sdk-wasm/web"; import * as identity from "@iota/identity-wasm/web"; // The endpoint of the IOTA node to use. -const API_ENDPOINT = "http://127.0.0.1:14265"; +const API_ENDPOINT = "http://localhost"; const EXAMPLE_JWK = new identity.Jwk({ kty: identity.JwkType.Okp, diff --git a/identity_iota/README.md b/identity_iota/README.md index 03ccaf8d29..548cf8a9e3 100644 --- a/identity_iota/README.md +++ b/identity_iota/README.md @@ -57,13 +57,13 @@ identity_iota = { version = "1.0.0" } To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/examples), you can also do this: 1. Clone the repository, e.g. through `git clone https://github.com/iotaledger/identity.rs` -2. Start a private Tangle as described in the [next section](#example-creating-an-identity) +2. Start IOTA Sandbox as described in the [next section](#example-creating-an-identity) 3. Run the example to create a DID using `cargo run --release --example 0_create_did` ## Example: Creating an Identity The following code creates and publishes a new IOTA DID Document to a locally running private network. -See the [instructions](https://github.com/iotaledger/hornet/tree/develop/private_tangle) on running your own private network. +See the [instructions](https://github.com/iotaledger/iota-sandbox) on running your own private network for development. _Cargo.toml_ @@ -74,9 +74,11 @@ version = "1.0.0" edition = "2021" [dependencies] -identity_iota = { version = "1.0.0" } +identity_iota = {version = "1.0.0", features = ["memstore"]} iota-sdk = { version = "1.0.2", default-features = true, features = ["tls", "client", "stronghold"] } tokio = { version = "1", features = ["full"] } +anyhow = "1.0.62" +rand = "0.8.5" ``` _main.__rs_ @@ -104,7 +106,7 @@ use iota_sdk::types::block::output::dto::AliasOutputDto; use tokio::io::AsyncReadExt; // The endpoint of the IOTA node to use. -static API_ENDPOINT: &str = "http://127.0.0.1:14265"; +static API_ENDPOINT: &str = "http://localhost"; /// Demonstrates how to create a DID Document and publish it in a new Alias Output. #[tokio::main]