Skip to content

Commit

Permalink
update examples references
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfraem committed Nov 26, 2024
1 parent b19aaaf commit 7c62252
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ then extracts and validates the DID Document from it.
<TabItem value="rust" label="Rust">

```rust
use examples_kinesis::create_kinesis_did_document;
use examples_kinesis::get_client_and_create_account;
use examples::create_did_document;
use examples::get_client_and_create_account;

use examples_kinesis::get_memstorage;
use examples::get_memstorage;
use identity_iota::iota::IotaDocument;
use identity_iota::prelude::Resolver;

Expand All @@ -54,7 +54,7 @@ async fn main() -> anyhow::Result<()> {
let storage = get_memstorage()?;
let identity_client = get_client_and_create_account(&storage).await?;
// create new DID document and publish it
let (document, _) = create_kinesis_did_document(&identity_client, &storage).await?;
let (document, _) = create_did_document(&identity_client, &storage).await?;

let did = document.id().clone();

Expand Down Expand Up @@ -85,9 +85,9 @@ You can also use the `Client` directly to resolve individual DIDs from its confi
<TabItem value="rust" label="Rust">

```rust
use examples_kinesis::create_kinesis_did_document;
use examples_kinesis::get_client_and_create_account;
use examples_kinesis::get_memstorage;
use examples::create_did_document;
use examples::get_client_and_create_account;
use examples::get_memstorage;

use identity_iota::iota::IotaDocument;

Expand All @@ -96,7 +96,7 @@ async fn main() -> anyhow::Result<()>{
let storage = get_memstorage()?;
let identity_client = get_client_and_create_account(&storage).await?;
// create new DID document and publish it
let (document, _) = create_kinesis_did_document(&identity_client, &storage).await?;
let (document, _) = create_did_document(&identity_client, &storage).await?;

let did = document.id().clone();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Before you can update anything, you will need to [create an Identity](./create.m
let storage = get_memstorage()?;
let identity_client = get_client_and_create_account(&storage).await?;
// create new DID document and publish it
let (document, vm_fragment_1) = create_kinesis_did_document(&identity_client, &storage).await?;
let (document, vm_fragment_1) = create_did_document(&identity_client, &storage).await?;
let did: IotaDID = document.id().clone();

```
Expand Down

0 comments on commit 7c62252

Please sign in to comment.