privacycash 1.1.22 → 1.1.23
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/models/utxo.js +0 -5
- package/package.json +1 -1
- package/src/models/utxo.ts +0 -5
package/dist/models/utxo.js
CHANGED
|
@@ -64,17 +64,12 @@ export class Utxo {
|
|
|
64
64
|
// Prepare the UTXO data object
|
|
65
65
|
const utxoData = {
|
|
66
66
|
amount: this.amount.toString(),
|
|
67
|
-
blinding: this.blinding.toString(),
|
|
68
67
|
index: this.index,
|
|
69
68
|
mintAddress: this.mintAddress,
|
|
70
|
-
keypair: {
|
|
71
|
-
pubkey: this.keypair.pubkey.toString()
|
|
72
|
-
}
|
|
73
69
|
};
|
|
74
70
|
// Add derived values
|
|
75
71
|
try {
|
|
76
72
|
utxoData.commitment = await this.getCommitment();
|
|
77
|
-
utxoData.nullifier = await this.getNullifier();
|
|
78
73
|
}
|
|
79
74
|
catch (error) {
|
|
80
75
|
utxoData.error = error.message;
|
package/package.json
CHANGED
package/src/models/utxo.ts
CHANGED
|
@@ -84,18 +84,13 @@ export class Utxo {
|
|
|
84
84
|
// Prepare the UTXO data object
|
|
85
85
|
const utxoData: any = {
|
|
86
86
|
amount: this.amount.toString(),
|
|
87
|
-
blinding: this.blinding.toString(),
|
|
88
87
|
index: this.index,
|
|
89
88
|
mintAddress: this.mintAddress,
|
|
90
|
-
keypair: {
|
|
91
|
-
pubkey: this.keypair.pubkey.toString()
|
|
92
|
-
}
|
|
93
89
|
};
|
|
94
90
|
|
|
95
91
|
// Add derived values
|
|
96
92
|
try {
|
|
97
93
|
utxoData.commitment = await this.getCommitment();
|
|
98
|
-
utxoData.nullifier = await this.getNullifier();
|
|
99
94
|
} catch (error: any) {
|
|
100
95
|
utxoData.error = error.message;
|
|
101
96
|
}
|