File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,11 @@ impl Transaction {
883
883
// Issuances and reissuances not supported yet
884
884
let mut in_commits = vec ! [ ] ;
885
885
let mut out_commits = vec ! [ ] ;
886
+ let mut domain = vec ! [ ] ;
886
887
for ( i, inp) in self . input . iter ( ) . enumerate ( ) {
888
+ let gen = spent_utxos[ i] . get_asset_gen ( secp)
889
+ . map_err ( |e| VerificationError :: SpentTxOutError ( i, e) ) ?;
890
+ domain. push ( gen) ;
887
891
in_commits. push (
888
892
spent_utxos[ i] . get_value_commit ( secp)
889
893
. map_err ( |e| VerificationError :: SpentTxOutError ( i, e) ) ?
@@ -899,6 +903,7 @@ impl Transaction {
899
903
Value :: Null => continue ,
900
904
Value :: Explicit ( v) => {
901
905
let gen = Generator :: new_unblinded ( secp, asset. into_tag ( ) ) ;
906
+ domain. push ( gen) ;
902
907
let comm = PedersenCommitment :: new_unblinded ( secp, * v, gen) ;
903
908
in_commits. push ( comm)
904
909
} ,
@@ -908,13 +913,6 @@ impl Transaction {
908
913
}
909
914
}
910
915
911
- let domain = spent_utxos
912
- . iter ( )
913
- . enumerate ( )
914
- . map ( |( i, out) |
915
- out. get_asset_gen ( secp) . map_err ( |e| VerificationError :: SpentTxOutError ( i, e) )
916
- )
917
- . collect :: < Result < Vec < _ > , _ > > ( ) ?;
918
916
for ( i, out) in self . output . iter ( ) . enumerate ( ) {
919
917
920
918
// Compute the value commitments and asset generator
You can’t perform that action at this time.
0 commit comments