Skip to content

Commit

Permalink
cli: fixed comments in .light template (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ananas-block authored May 19, 2023
1 parent 0b3df7e commit b9d9717
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions cli/src/psp_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -892,24 +892,19 @@ include "../node_modules/circomlib/circuits/comparators.circom";
#[lightTransaction(verifierTwo)]
template {}() {{
// defines the data which is saved in the utxo
// this data is defined at utxo creation
// is checked that only utxos with instructionData = hash or 0
// exist in input utxos
// is outside instruction
// could add signal inputs automatically for these
// are private inputs
// utxoData:
// - defines the data which is saved in the utxo
// - this data is defined at utxo creation
// - is checked that only utxos with instructionData = hash or 0
// - exist in input utxos
// - are private inputs
#[utxoData]
{{
releaseSlot
}}
signal input currentSlot;
currentSlot === releaseSlot;
}}
// throw error when no utxoData -> doesn't make sense
// throw error if is declared twice
// throw error when there is no #[instance]
// throw error when there is no #[lightTransaction(verifierTwo)]
"#,
name.to_lower_camel_case(),
name.to_lower_camel_case()
Expand Down

0 comments on commit b9d9717

Please sign in to comment.