@tari-project/ootle-secret-key-wallet 0.11.1 → 0.12.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/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export declare class EphemeralKeySigner implements Signer {
46
46
 
47
47
  /**
48
48
  * A local signer that holds a secret key (and optional view-only key) in memory,
49
- * using the WASM module for transaction hashing and Schnorr signing.
49
+ * using the WASM module for transaction hashing and sr25519 signing.
50
50
  *
51
51
  * For production use, prefer `WalletDaemonSigner` so the secret key never lives
52
52
  * in JavaScript memory.
@@ -112,7 +112,7 @@ export declare class SecretKeyWallet implements Signer {
112
112
  * Produces a one-time spend-key signature for a stealth input ({@link Signer.addStealthSignature}).
113
113
  *
114
114
  * Derives the one-time spend scalar (`c + k`) for the owned stealth UTXO via
115
- * `stealthDhSecret(network, ownerSecret, publicNonce)`, then signs via the WASM
115
+ * `stealthDhSecret(network, ownerSecret, ctx.viewSecret, publicNonce)`, then signs via the WASM
116
116
  * `addTransactionSigner` (same path as {@link signTransaction}).
117
117
  *
118
118
  * The returned {@link TransactionSignature} carries the one-time spend public key (not the
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ var u = class t2 {
43
43
  return e2;
44
44
  }
45
45
  async addStealthSignature(t3, n2, r3, i2) {
46
- let a2 = e(t3, await i2.crypto.stealthDhSecret(this.network, this.ownerSecretKey, n2), r3), o2 = JSON.parse(a2);
46
+ let a2 = e(t3, await i2.crypto.stealthDhSecret(this.network, this.ownerSecretKey, i2.viewSecret, n2), r3), o2 = JSON.parse(a2);
47
47
  return o2.signatures[o2.signatures.length - 1];
48
48
  }
49
49
  async signTransaction(t3, n2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-secret-key-wallet",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/tari-project/ootle.ts.git",
@@ -25,9 +25,9 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@tari-project/ootle-ts-bindings": "^1.60.0",
29
- "@tari-project/ootle-wasm": "^0.47.0",
30
- "@tari-project/ootle": "0.11.1"
28
+ "@tari-project/ootle-ts-bindings": "^1.62.0",
29
+ "@tari-project/ootle-wasm": "^0.49.1",
30
+ "@tari-project/ootle": "0.12.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^25.5.0",