Modules§
Structs§
- Normalized
Spell - Normalized representation of a spell. Can be committed as public input.
- Normalized
Transaction - Normalized representation of a Charms transaction.
- Spell
Prover Input
Constants§
- CURRENT_
VERSION - Current version of the protocol.
- V0
- Version
0of the protocol. - V0_
SPELL_ VK - Verification key for version
0of thecharms-spell-checkerbinary. - V1
- Version
1of the protocol. - V2
- Version
2of the protocol. - V1_
SPELL_ VK - Verification key for version
1of thecharms-spell-checkerbinary.
Functions§
- apps
- Return the list of apps in the spell.
- charms
- Return
charms_data::Charmsfor the givenNormalizedCharms. - prev_
spells - Extract spells from previous transactions.
- to_tx
- Convert normalized spell to
charms_data::Transaction. - well_
formed - Check if the spell is well-formed.
Type Aliases§
- Normalized
Charms - Maps the index of the charm’s app (in
NormalizedSpell.app_public_inputs) to the charm’s data. - Proof
- Proof of correctness of a spell.