File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ use parity_scale_codec::{Decode, Encode};
11
11
use serde:: { Deserialize , Serialize } ;
12
12
use sp_runtime:: transaction_validity:: TransactionPriority ;
13
13
14
- /// A single constraint checker that a transaction can choose to call. Checks whether the input
14
+
15
+ /// A simplified constraint checker that a transaction can choose to call. Checks whether the input
15
16
/// and output data from a transaction meets the codified constraints.
16
17
///
17
18
/// Additional transient information may be passed to the constraint checker by including it in the fields
@@ -29,6 +30,15 @@ pub trait SimpleConstraintChecker: Debug + Encode + Decode + Clone {
29
30
) -> Result < TransactionPriority , Self :: Error > ;
30
31
}
31
32
33
+ /// A single constraint checker that a transaction can choose to call. Checks whether the input
34
+ /// and output data from a transaction meets the codified constraints.
35
+ ///
36
+ /// This full ConstraintChecker should only be used if there is more that a piece wants to do such
37
+ /// as check the verifier information in some unique way.
38
+ ///
39
+ /// Additional transient information may be passed to the constraint checker by including it in the fields
40
+ /// of the constraint checker struct itself. Information passed in this way does not come from state, nor
41
+ /// is it stored in state.
32
42
pub trait ConstraintChecker : Debug + Encode + Decode + Clone {
33
43
/// the error type that this constraint checker may return
34
44
type Error : Debug ;
Original file line number Diff line number Diff line change 1
- //! TODO explanation this type
1
+ //! For now this is a higher level description of the default UTXO set features which Tuxedo
2
+ //! chooses to use. Future UTXO sets could take a different form especially
3
+ //! if being used for Zero-Knowledge. In the future it may likely be abstracted into a trait
4
+ //! to support various UTXO set types.
5
+ //!
2
6
3
7
use crate :: {
4
8
types:: { Output , OutputRef } ,
You can’t perform that action at this time.
0 commit comments