@arcblock/vc
Advanced tools
Comparing version 1.13.11 to 1.13.12
@@ -65,3 +65,3 @@ /** | ||
const { wallet, name: issuerName } = issuer; | ||
const issuerDid = wallet.toAddress(); | ||
const issuerDid = wallet.address; | ||
const typeInfo = toTypeInfo(issuerDid); | ||
@@ -254,3 +254,3 @@ | ||
const { wallet, name } = issuer; | ||
const issuerDid = wallet.toAddress(); | ||
const issuerDid = wallet.address; | ||
const typeInfo = toTypeInfo(issuerDid); | ||
@@ -257,0 +257,0 @@ const vcType = { ...typeInfo, role: types.RoleType.ROLE_VC }; |
{ | ||
"name": "@arcblock/vc", | ||
"version": "1.13.11", | ||
"version": "1.13.12", | ||
"description": "Javascript lib to work with ArcBlock Verifiable Credentials", | ||
@@ -48,6 +48,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@arcblock/did": "1.13.11", | ||
"@ocap/mcrypto": "1.13.11", | ||
"@ocap/util": "1.13.11", | ||
"@ocap/wallet": "1.13.11", | ||
"@arcblock/did": "1.13.12", | ||
"@ocap/mcrypto": "1.13.12", | ||
"@ocap/util": "1.13.12", | ||
"@ocap/wallet": "1.13.12", | ||
"debug": "^4.3.2", | ||
@@ -58,3 +58,3 @@ "is-absolute-url": "^3.0.3", | ||
}, | ||
"gitHead": "42184b4b915a5f390c58e6239f61d621d9128917" | ||
"gitHead": "64135c8f8f7edc1180e0604a4501a9504bcbe4d0" | ||
} |
@@ -27,3 +27,3 @@ ![Verifiable Credentials](https://www.arcblock.io/.netlify/functions/badge/?text=Verifiable+Credentials) | ||
subject: { | ||
id: owner.toAddress(), | ||
id: owner.address, | ||
key: 'value', | ||
@@ -36,3 +36,3 @@ method: 'SHA3', | ||
const result = VC.verify({ vc, ownerDid: owner.toAddress(), trustedIssuers: issuer.toAddress() }); | ||
const result = VC.verify({ vc, ownerDid: owner.address, trustedIssuers: issuer.address }); | ||
console.log(result); // true | ||
@@ -39,0 +39,0 @@ ``` |
15743
+ Added@arcblock/did@1.13.12(transitive)
+ Added@ocap/mcrypto@1.13.12(transitive)
+ Added@ocap/util@1.13.12(transitive)
+ Added@ocap/wallet@1.13.12(transitive)
- Removed@arcblock/did@1.13.11(transitive)
- Removed@ocap/mcrypto@1.13.11(transitive)
- Removed@ocap/util@1.13.11(transitive)
- Removed@ocap/wallet@1.13.11(transitive)
Updated@arcblock/did@1.13.12
Updated@ocap/mcrypto@1.13.12
Updated@ocap/util@1.13.12
Updated@ocap/wallet@1.13.12