@adelos/sdk 0.1.13 → 0.1.14
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 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ function recoverStealthSecretKey(metaSk, sharedSecret) {
|
|
|
166
166
|
const metaScalar = toScalar(metaSk);
|
|
167
167
|
const stealthScalar = ed.etc.mod(metaScalar + scalar, ed.CURVE.n);
|
|
168
168
|
const hex = stealthScalar.toString(16).padStart(64, "0");
|
|
169
|
-
return hexToBytes(hex);
|
|
169
|
+
return hexToBytes(hex).reverse();
|
|
170
170
|
}
|
|
171
171
|
function generateStealthMemo(ephemeralPubkey) {
|
|
172
172
|
return `${ADELOS_CONFIG.MEMO_PREFIX}${bytesToHex(ephemeralPubkey)}`;
|
package/dist/index.mjs
CHANGED
|
@@ -116,7 +116,7 @@ function recoverStealthSecretKey(metaSk, sharedSecret) {
|
|
|
116
116
|
const metaScalar = toScalar(metaSk);
|
|
117
117
|
const stealthScalar = ed.etc.mod(metaScalar + scalar, ed.CURVE.n);
|
|
118
118
|
const hex = stealthScalar.toString(16).padStart(64, "0");
|
|
119
|
-
return hexToBytes(hex);
|
|
119
|
+
return hexToBytes(hex).reverse();
|
|
120
120
|
}
|
|
121
121
|
function generateStealthMemo(ephemeralPubkey) {
|
|
122
122
|
return `${ADELOS_CONFIG.MEMO_PREFIX}${bytesToHex(ephemeralPubkey)}`;
|