@actioncodes/protocol 1.1.3 → 1.1.5
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/dist/protocol.js +3 -3
- package/package.json +3 -2
package/dist/protocol.js
CHANGED
@@ -89,14 +89,14 @@ class ActionCodesProtocol {
|
|
89
89
|
throw new Error(`No adapter found for chain '${chain}'`);
|
90
90
|
}
|
91
91
|
const ts = timestamp || Date.now();
|
92
|
-
const { code,
|
93
|
-
const message = adapter.getCodeSignatureMessage(code,
|
92
|
+
const { code, expiresAt } = codegen_1.CodeGenerator.generateCode(pubkey, prefix, ts);
|
93
|
+
const message = adapter.getCodeSignatureMessage(code, ts, prefix);
|
94
94
|
const signature = await signFn(message);
|
95
95
|
const actionCode = actioncode_1.ActionCode.fromPayload({
|
96
96
|
code,
|
97
97
|
pubkey,
|
98
98
|
signature,
|
99
|
-
timestamp:
|
99
|
+
timestamp: ts,
|
100
100
|
expiresAt,
|
101
101
|
prefix,
|
102
102
|
chain,
|
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@actioncodes/protocol",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.5",
|
4
4
|
"description": "Action Codes Protocol",
|
5
|
-
"main": "
|
5
|
+
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
7
7
|
"exports": {
|
8
8
|
".": {
|
9
9
|
"types": "./dist/index.d.ts",
|
10
|
+
"require": "./dist/index.js",
|
10
11
|
"import": "./dist/index.js"
|
11
12
|
}
|
12
13
|
},
|