Skip to content

Commit

Permalink
Feat/new ssimon adapter release (#21)
Browse files Browse the repository at this point in the history
* feat: made this stuff work with the new adapter pattern

* chore: bump version

* chore: fix endpoint
  • Loading branch information
coodos authored Dec 28, 2024
1 parent 47bc96b commit 36c791f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
stringToBytes,
IdentityAccount,
DidSigner,
} from "../../ssimon/src";
} from "@tanglelabs/ssimon";
import Module from "node:module";
const require = Module.createRequire(import.meta.url);
import { getPublicKeyAsync } from "@noble/ed25519";
Expand All @@ -28,11 +28,8 @@ const {
import * as didJWT from "did-jwt";
import { ensureAddressHasFunds } from "./utils";
import { Resolver } from "did-resolver";
import {
Jwk,
MethodDigest,
VerificationMethod,
} from "@iota/identity-wasm/node";
import { MethodDigest, VerificationMethod } from "@iota/identity-wasm/node";


export class DidIotaAdapter<K extends StorageSpec<Record<string, any>, any>>
implements NetworkAdapter
Expand Down Expand Up @@ -104,8 +101,8 @@ export class DidIotaAdapter<K extends StorageSpec<Record<string, any>, any>>
await getPublicKeyAsync(stringToBytes(seed))
);
const hexSeed = "0x" + seed + publicKey;
// const API_ENDPOINT = "https://api.stardust-mainnet.iotaledger.net";
const API_ENDPOINT = "https://api.testnet.shimmer.network/";
const API_ENDPOINT = "https://api.stardust-mainnet.iotaledger.net";

const client = new Client({
primaryNode: API_ENDPOINT,
localPow: true,
Expand Down

0 comments on commit 36c791f

Please sign in to comment.