@ocap/wallet 1.26.2 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.js CHANGED
@@ -164,9 +164,6 @@ export function isValid(wallet, canSign = true) {
164
164
  return false;
165
165
  }
166
166
  if (canSign) {
167
- if (!wallet.secretKey) {
168
- return false;
169
- }
170
167
  if (typeof wallet.sign !== 'function') {
171
168
  return false;
172
169
  }
package/lib/index.js CHANGED
@@ -197,9 +197,6 @@ function isValid(wallet, canSign = true) {
197
197
  return false;
198
198
  }
199
199
  if (canSign) {
200
- if (!wallet.secretKey) {
201
- return false;
202
- }
203
200
  if (typeof wallet.sign !== 'function') {
204
201
  return false;
205
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/wallet",
3
- "version": "1.26.2",
3
+ "version": "1.27.0",
4
4
  "description": "Utility function to create and use an forge compatible crypto wallet",
5
5
  "keywords": [
6
6
  "crypto",
@@ -43,10 +43,10 @@
43
43
  "url": "https://github.com/ArcBlock/blockchain/issues"
44
44
  },
45
45
  "dependencies": {
46
- "@arcblock/did": "1.26.2",
47
- "@arcblock/jwt": "1.26.2",
48
- "@ocap/mcrypto": "1.26.2",
49
- "@ocap/util": "1.26.2"
46
+ "@arcblock/did": "1.27.0",
47
+ "@arcblock/jwt": "1.27.0",
48
+ "@ocap/mcrypto": "1.27.0",
49
+ "@ocap/util": "1.27.0"
50
50
  },
51
51
  "scripts": {
52
52
  "lint": "eslint tests src",