@phantom/api-key-stamper 0.1.2 → 0.1.3
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/index.js +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -47,9 +47,7 @@ var ApiKeyStamper = class {
|
|
|
47
47
|
* @param params - Parameters object with data to sign
|
|
48
48
|
* @returns Complete X-Phantom-Stamp header value
|
|
49
49
|
*/
|
|
50
|
-
async stamp({
|
|
51
|
-
data
|
|
52
|
-
}) {
|
|
50
|
+
async stamp({ data }) {
|
|
53
51
|
const signature = (0, import_crypto.signWithSecret)(this.keypair.secretKey, data);
|
|
54
52
|
const signatureBase64url = (0, import_base64url.base64urlEncode)(signature);
|
|
55
53
|
const stampData = {
|
package/dist/index.mjs
CHANGED
|
@@ -13,9 +13,7 @@ var ApiKeyStamper = class {
|
|
|
13
13
|
* @param params - Parameters object with data to sign
|
|
14
14
|
* @returns Complete X-Phantom-Stamp header value
|
|
15
15
|
*/
|
|
16
|
-
async stamp({
|
|
17
|
-
data
|
|
18
|
-
}) {
|
|
16
|
+
async stamp({ data }) {
|
|
19
17
|
const signature = signWithSecret(this.keypair.secretKey, data);
|
|
20
18
|
const signatureBase64url = base64urlEncode(signature);
|
|
21
19
|
const stampData = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phantom/api-key-stamper",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "API key stamper for Phantom Wallet SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@phantom/base64url": "^0.1.0",
|
|
41
|
-
"@phantom/crypto": "^0.1.
|
|
42
|
-
"@phantom/sdk-types": "^0.1.
|
|
41
|
+
"@phantom/crypto": "^0.1.2",
|
|
42
|
+
"@phantom/sdk-types": "^0.1.2",
|
|
43
43
|
"axios": "^1.10.0",
|
|
44
44
|
"bs58": "^6.0.0",
|
|
45
45
|
"buffer": "^6.0.3"
|