diff --git a/README.md b/README.md index a18b41b..e401a89 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ```ts import { JwtCredentialPayload } from '@kaytrust/prooftypes' -import { createDidEthrFromPrivateKeyAndRpc } from '@kaytrust/did-ethr' +import { createDidEthrFromPrivateKey } from '@kaytrust/did-ethr' const vcPayload: JwtCredentialPayload = { sub: 'did:ethr:0x435df3eda57154cf8cf7926079881f2912f54db4', @@ -22,9 +22,8 @@ const vcPayload: JwtCredentialPayload = { } const privateKey = ""; -const RPC_AMOY = ""; const AMOY_CHAIN_ID = 80002; -const issuer = createDidEthrFromPrivateKeyAndRpc(privateKey, RPC_AMOY, {chainNameOrId: AMOY_CHAIN_ID}) +const issuer = createDidEthrFromPrivateKey(privateKey, {chainNameOrId: AMOY_CHAIN_ID}) const proofTypeCredential = new ProofTypeJWT({issuer}) const vcJwt = await proofTypeCredential.generateProof(vcPayload) diff --git a/package.json b/package.json index fcf331e..b6aa367 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "vitest": "^2.1.2" }, "dependencies": { - "@kaytrust/did-ethr": "^0.1.2", + "@kaytrust/did-ethr": "^0.1.3", "did-jwt-vc": "^4.0.4" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" diff --git a/yarn.lock b/yarn.lock index 24a94dd..2c95398 100644 --- a/yarn.lock +++ b/yarn.lock @@ -175,10 +175,10 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@kaytrust/did-ethr@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@kaytrust/did-ethr/-/did-ethr-0.1.2.tgz#da5f0003d3934acf3beb7fd4c2cca0911fb317e5" - integrity sha512-I09odR1FnNLEsfGZvwVb1sbXV5xVYeYM+TzRG2viTZJLZIK6G+kXUlAWXRvQ00mUsL9qhNSfGyS8Nag+vVLnRg== +"@kaytrust/did-ethr@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@kaytrust/did-ethr/-/did-ethr-0.1.3.tgz#ead99ab9c5af6d01ab3f6e5642f0d8fcc90e2199" + integrity sha512-J7ZrwlwWBRYoI9PFt6BC7hNaeHL2gDGd6VsJdZqCBbEMD972eJZntenLK0XFM9u71/0j+YOrFQVktialFG+iCA== dependencies: dotenv "^16.4.5" ethr-did "^3.0.21"