@exodus/solana-lib 3.4.0 → 3.4.2
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/package.json +2 -2
- package/src/msg/sign-message.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-lib",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Exodus internal Solana low-level library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@solana/web3.js": "^1.90.0",
|
|
41
41
|
"bip39": "^2.6.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9d24eb58422692fc1acdcb834061d02b2632801d"
|
|
44
44
|
}
|
package/src/msg/sign-message.js
CHANGED
|
@@ -11,5 +11,6 @@ export const signMessageNew = async ({ privateKey, message }) => {
|
|
|
11
11
|
`privateKey is not a Buffer or Uint8Array`
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const { secretKey } = nacl.sign.keyPair.fromSeed(privateKey)
|
|
15
|
+
return Buffer.from(nacl.sign.detached(rawMessage, secretKey))
|
|
15
16
|
}
|