@@ -255,9 +255,11 @@ async function main() {
255
255
// },
256
256
// ),
257
257
// not sure what "previous outpoint" this refers to, as its not the one in the transaction
258
- instant_lock :
258
+ instant_lock : DashTx . utils . hexToBytes (
259
259
"01011dbbda5861b12d7523f20aa5e0d42f52de3dcd2d5c2fe919ba67b59f050d206e0000000058c444dd0957767db2c0adea69fd861792bfa75c7e364d83fe85bebebc2a08b436a56617591a6a89237bada6af1f9b46eba47b5d89a8c4e49ff2d0236182307c8967c46529a967b3822e1ba8a173066296d02593f0f59b3a78a30a7eef9c8a120847729e62e4a32954339286b79fe7590221331cd28d576887a263f45b595d499272f656c3f5176987c976239cac16f972d796ad82931d532102a4f95eec7d80" ,
260
- transaction : txProofHex ,
260
+ ) ,
261
+ transaction : DashTx . utils . hexToBytes ( txProofHex ) ,
262
+ // output_index: DashTx.utils.hexToBytes(vout),
261
263
output_index : vout ,
262
264
} ;
263
265
return assetLockInstantProof ;
@@ -389,6 +391,7 @@ async function main() {
389
391
let bcAb = Bincode . encode ( Bincode . StateTransition , stateTransition , {
390
392
signable : true ,
391
393
} ) ;
394
+ console . log ( `bc (ready-to-sign) AB:` , bcAb ) ;
392
395
let bc = new Uint8Array ( bcAb ) ;
393
396
console . log ( `bc (ready-to-sign):` ) ;
394
397
console . log ( DashTx . utils . bytesToHex ( bc ) ) ;
@@ -549,7 +552,7 @@ async function getKnownIdentityKeys(masterKey, otherKey) {
549
552
function getIdentityTransitionKeys ( identityKeys ) {
550
553
let stKeys = [ ] ;
551
554
for ( let key of identityKeys ) {
552
- let data = bytesToBase64 ( key . publicKey ) ;
555
+ // let data = bytesToBase64(key.publicKey);
553
556
let stKey = {
554
557
$version : "0" ,
555
558
id : key . id ,
@@ -559,7 +562,8 @@ function getIdentityTransitionKeys(identityKeys) {
559
562
contract_bounds : null ,
560
563
// readOnly: key.readOnly,
561
564
read_only : key . readOnly || false ,
562
- data : data ,
565
+ // data: data,
566
+ data : key . publicKey ,
563
567
// signature: "TODO",
564
568
} ;
565
569
// if ("readOnly" in key) {
0 commit comments