Modules§
Structs§
- Beam
Source - Source of a beamed input: the UTXO that beamed the charms, with an optional nonce.
- 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. - V8
- Version
8of the protocol. - V9
- Version
9of 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. - V7_
SPELL_ VK - Verification key for version
7of the protocol implemented bycharms-proof-wrapperbinary. - V8_
SPELL_ VK - Verification key for version
8of the protocol implemented bycharms-proof-wrapperbinary. - V9_
SPELL_ VK - Verification key for version
9of the protocol implemented bycharms-proof-wrapperbinary. - V10
- Version
10of the protocol. - V11
- Version
11of the protocol. - V10_
SPELL_ VK - Verification key for version
10of the protocol implemented bycharms-proof-wrapperbinary.
Functions§
- apps
- Return the list of apps in the spell.
- beamed_
out_ to_ hash - charms
- Return
charms_data::Charmsfor the givenNormalizedCharms. - ensure_
no_ zero_ amounts - is_
correct - Check if the spell is correct.
- prev_
spells - Extract spells from previous transactions.
- to_tx
- Convert normalized spell to
charms_data::Transaction. - utxo_
id_ hash - utxo_
id_ hash_ with_ nonce - 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.