turing-wallet-provider 1.4.3 → 1.4.4
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/README.md +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -173,8 +173,8 @@ interface intput {
|
|
|
173
173
|
script?: string;
|
|
174
174
|
satoshis?: number;
|
|
175
175
|
outputIndex: number;
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
unfinishedScriptSig: string;
|
|
177
|
+
sigPosition: number;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
interface output {
|
|
@@ -198,27 +198,27 @@ const sourceUtxos: intput[] = [
|
|
|
198
198
|
outputIndex: 0,
|
|
199
199
|
satoshis: 1000000000,
|
|
200
200
|
script: tbc.Script.buildPublicKeyHashOut(address).toString(),
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
unfinishedScriptSig: `${publicKey}`,
|
|
202
|
+
sigPosition: 0
|
|
203
203
|
}
|
|
204
204
|
]
|
|
205
205
|
|
|
206
206
|
const inputs: intput[][] = [
|
|
207
207
|
[
|
|
208
|
-
{ outputIndex: 0,
|
|
209
|
-
{ outputIndex: 1,
|
|
208
|
+
{ outputIndex: 0, unfinishedScriptSig: `${publicKey}`, sigPosition: 0 },
|
|
209
|
+
{ outputIndex: 1, unfinishedScriptSig: `${publicKey}`, sigPosition: 0 },
|
|
210
210
|
{
|
|
211
211
|
txId: "",
|
|
212
212
|
outputIndex: 1,
|
|
213
213
|
satoshis: 1000000000,
|
|
214
214
|
script: tbc.Script.buildPublicKeyHashOut(address).toString(),
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
unfinishedScriptSig: `${publicKey}`,
|
|
216
|
+
sigPosition: 0
|
|
217
217
|
}//和父子交易无关的输入
|
|
218
218
|
],
|
|
219
219
|
[
|
|
220
|
-
{ outputIndex: 0,
|
|
221
|
-
{ outputIndex: 1,
|
|
220
|
+
{ outputIndex: 0, unfinishedScriptSig: `${publicKey}`, sigPosition: 0 },
|
|
221
|
+
{ outputIndex: 1, unfinishedScriptSig: `${publicKey}`, sigPosition: 0 }
|
|
222
222
|
]
|
|
223
223
|
];
|
|
224
224
|
|