File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ go 1.24.6
5
5
replace github.com/btcsuite/btcd/btcec/v2 => github.com/btcsuite/btcd/btcec/v2 v2.3.3
6
6
7
7
require (
8
- github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20250930111159-7f278b58e00f
8
+ github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20251002131351-3a7a7145b80f
9
9
github.com/btcsuite/btcd v0.24.3-0.20240921052913-67b8efd3ba53
10
10
github.com/btcsuite/btcd/btcec/v2 v2.3.4
11
11
github.com/btcsuite/btcd/btcutil v1.1.5
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmH
17
17
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da /go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA =
18
18
github.com/aead/siphash v1.0.1 h1:FwHfE/T45KPKYuuSAKyyvE+oPWcaQ+CUmFW0bPlM+kg =
19
19
github.com/aead/siphash v1.0.1 /go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII =
20
- github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20250930111159-7f278b58e00f h1:ydO6fi5O21pa24X+wjBSSu7tftyZoMPKGgMZGRh8kXk =
21
- github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20250930111159-7f278b58e00f /go.mod h1:WtND6j3BA5KcYWCCHkI5k5UZS2UU+GZHDwqMVn6SD2s =
20
+ github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20251002131351-3a7a7145b80f h1:cQmC727D/UiTCewkK9bWTUApefcI5YfodRB0y7F5Fvk =
21
+ github.com/arkade-os/arkd/pkg/ark-lib v0.7.2-0.20251002131351-3a7a7145b80f /go.mod h1:WtND6j3BA5KcYWCCHkI5k5UZS2UU+GZHDwqMVn6SD2s =
22
22
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 /go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8 =
23
23
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so =
24
24
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 /go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw =
Original file line number Diff line number Diff line change @@ -113,18 +113,22 @@ func (r *CovenantlessRedeemBranch) NextRedeemTx() (string, error) {
113
113
return "" , err
114
114
}
115
115
116
- conditionWitness , err := txutils .GetConditionWitness (input )
116
+ conditionWitnessFields , err := txutils .GetArkPsbtFields (
117
+ tx ,
118
+ i ,
119
+ txutils .ConditionWitnessField ,
120
+ )
117
121
if err != nil {
118
122
return "" , err
119
123
}
120
124
121
125
args := make (map [string ][]byte )
122
- if len (conditionWitness ) > 0 {
126
+ if len (conditionWitnessFields ) > 0 {
123
127
var conditionWitnessBytes bytes.Buffer
124
- if err := psbt .WriteTxWitness (& conditionWitnessBytes , conditionWitness ); err != nil {
128
+ if err := psbt .WriteTxWitness (& conditionWitnessBytes , conditionWitnessFields [ 0 ] ); err != nil {
125
129
return "" , err
126
130
}
127
- args [string (txutils .CONDITION_WITNESS_KEY_PREFIX )] = conditionWitnessBytes .Bytes ()
131
+ args [string (txutils .ArkFieldConditionWitness )] = conditionWitnessBytes .Bytes ()
128
132
}
129
133
130
134
for _ , sig := range input .TaprootScriptSpendSig {
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ func toIntentInputs(
351
351
arkFields = append (arkFields , []* psbt.Unknown {
352
352
{
353
353
Value : taptree ,
354
- Key : txutils .VTXO_TAPROOT_TREE_KEY ,
354
+ Key : txutils .ArkFieldTaprootTree ,
355
355
},
356
356
})
357
357
}
@@ -386,7 +386,7 @@ func toIntentInputs(
386
386
arkFields = append (arkFields , []* psbt.Unknown {
387
387
{
388
388
Value : taptree ,
389
- Key : txutils .VTXO_TAPROOT_TREE_KEY ,
389
+ Key : txutils .ArkFieldTaprootTree ,
390
390
},
391
391
})
392
392
}
You can’t perform that action at this time.
0 commit comments