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.
- MOCK_
SPELL_ VK - V0
- Version
0of the protocol. - V0_
SPELL_ VK - Verification key for version
0of the protocol implemented bycharms-spell-checkerbinary. - V1
- Version
1of the protocol. - V2
- Version
2of the protocol. - V3
- Version
3of the protocol. - V4
- Version
4of the protocol. - V5
- Version
5of the protocol. - V6
- Version
6of the protocol. - V7
- Version
7of the protocol. - V1_
SPELL_ VK - Verification key for version
1of the protocol implemented bycharms-spell-checkerbinary. - V2_
SPELL_ VK - Verification key for version
2of the protocol implemented bycharms-spell-checkerbinary. - V3_
SPELL_ VK - Verification key for version
3of the protocol implemented bycharms-spell-checkerbinary. - V4_
SPELL_ VK - Verification key for version
4of the protocol implemented bycharms-spell-checkerbinary. - V5_
SPELL_ VK - Verification key for version
5of the protocol implemented bycharms-spell-checkerbinary. - V6_
SPELL_ VK - Verification key for version
6of the protocol implemented bycharms-proof-wrapperbinary.
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. - utxo_
id_ hash - 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 spell correctness.