@ocap/sdk 1.25.5 → 1.26.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/index.d.ts +9 -9
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -260,17 +260,17 @@ export interface WalletObject<T extends BytesType = string> {
|
|
|
260
260
|
hash(data: BytesType, round?: number, encoding?: 'buffer'): Buffer;
|
|
261
261
|
hash(data: BytesType, round?: number, encoding?: 'Uint8Array'): Uint8Array;
|
|
262
262
|
hash(data: BytesType, round?: number, encoding?: EncodingType): BytesType;
|
|
263
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'hex'): string
|
|
264
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base16'): string
|
|
265
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base58'): string
|
|
266
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base64'): string
|
|
267
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'buffer'): Buffer
|
|
268
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Uint8Array
|
|
269
|
-
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: EncodingType): BytesType
|
|
263
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'hex'): Promise<string>;
|
|
264
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base16'): Promise<string>;
|
|
265
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base58'): Promise<string>;
|
|
266
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base64'): Promise<string>;
|
|
267
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'buffer'): Promise<Buffer>;
|
|
268
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Promise<Uint8Array>;
|
|
269
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: EncodingType): Promise<BytesType>;
|
|
270
270
|
verify(data: BytesType, signature: BytesType, hashBeforeVerify?: boolean, extra?: any): Promise<boolean>;
|
|
271
271
|
ethHash(data: string): string;
|
|
272
|
-
ethSign(data: string, hashBeforeSign?: boolean): string
|
|
273
|
-
ethVerify(data: string, signature: string, hashBeforeVerify?: boolean): boolean
|
|
272
|
+
ethSign(data: string, hashBeforeSign?: boolean): Promise<string>;
|
|
273
|
+
ethVerify(data: string, signature: string, hashBeforeVerify?: boolean): Promise<boolean>;
|
|
274
274
|
toJSON(): SerializedWallet;
|
|
275
275
|
/**
|
|
276
276
|
* @deprecated ES6: use `wallet.address` instead
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/sdk",
|
|
3
3
|
"description": "Forge javascript SDK packages all-in-one",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.26.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"debug": "^4.3.6",
|
|
23
23
|
"react-app-polyfill": "^1.0.6",
|
|
24
24
|
"readable-stream": "3.6.0",
|
|
25
|
-
"@ocap/client": "1.
|
|
26
|
-
"@
|
|
27
|
-
"@ocap/
|
|
28
|
-
"@ocap/
|
|
29
|
-
"@
|
|
25
|
+
"@ocap/client": "1.26.0",
|
|
26
|
+
"@arcblock/did-util": "1.26.0",
|
|
27
|
+
"@ocap/message": "1.26.0",
|
|
28
|
+
"@ocap/util": "1.26.0",
|
|
29
|
+
"@ocap/wallet": "1.26.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"inspectpack": "^4.7.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"webpack": "^5.94.0",
|
|
40
40
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
41
41
|
"webpack-cli": "^5.1.4",
|
|
42
|
-
"@ocap/e2e-test": "1.
|
|
42
|
+
"@ocap/e2e-test": "1.26.0"
|
|
43
43
|
},
|
|
44
44
|
"remarkConfig": {
|
|
45
45
|
"plugins": [
|