Skip to content

Commit

Permalink
remove faucet prots, fix tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Feb 2, 2024
1 parent 4602192 commit e420948
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/iota-sandbox/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/iota-sandbox/tear-down/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ runs:
run: |
cd iota-sandbox/sandbox
docker-compose down
cd ..
cd ../..
sudo rm -rf iota-sandbox
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 6 additions & 4 deletions identity_iota/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand All @@ -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._<span></span>_rs_
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit e420948

Please sign in to comment.