Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Public Member Functions | |
def | __init__ (self, Any mixer_instance, str username, str wallet_dir, ZethAddressPriv secret_address, ITreeHash tree_hash) |
Optional[ZethNoteDescription] | receive_note (self, int comm_addr, MixOutputEvents out_ev, PairingParameters pp) |
List[ZethNoteDescription] | receive_notes (self, List[MixOutputEvents] output_events, PairingParameters pp) |
List[str] | mark_nullifiers_used (self, List[bytes] nullifiers) |
Iterator[Tuple[int, str, EtherValue]] | note_summaries (self) |
Iterator[Tuple[int, str, EtherValue]] | spent_note_summaries (self) |
int | get_next_block (self) |
None | update_and_save_state (self, int next_block) |
ZethNoteDescription | find_note (self, str note_id) |
Public Attributes | |
mixer_instance | |
username | |
wallet_dir | |
a_sk | |
k_sk_receiver | |
state_file | |
state | |
merkle_tree | |
merkle_tree_changed | |
next_addr | |
Very simple class to track the list of notes owned by a Zeth user. Note: this class does not store the notes in encrypted form, and encodes some information (including value) in the filename. It is a proof of concept implementation and NOT intended to be secure against intruders who have access to the file system. However, we expect that a secure implementation could expose similar interface and functionality.
def zeth.core.wallet.Wallet.__init__ | ( | self, | |
Any | mixer_instance, | ||
str | username, | ||
str | wallet_dir, | ||
ZethAddressPriv | secret_address, | ||
ITreeHash | tree_hash | ||
) |
ZethNoteDescription zeth.core.wallet.Wallet.find_note | ( | self, | |
str | note_id | ||
) |
int zeth.core.wallet.Wallet.get_next_block | ( | self | ) |
List[str] zeth.core.wallet.Wallet.mark_nullifiers_used | ( | self, | |
List[bytes] | nullifiers | ||
) |
Iterator[Tuple[int, str, EtherValue]] zeth.core.wallet.Wallet.note_summaries | ( | self | ) |
Optional[ZethNoteDescription] zeth.core.wallet.Wallet.receive_note | ( | self, | |
int | comm_addr, | ||
MixOutputEvents | out_ev, | ||
PairingParameters | pp | ||
) |
List[ZethNoteDescription] zeth.core.wallet.Wallet.receive_notes | ( | self, | |
List[MixOutputEvents] | output_events, | ||
PairingParameters | pp | ||
) |
Iterator[Tuple[int, str, EtherValue]] zeth.core.wallet.Wallet.spent_note_summaries | ( | self | ) |
None zeth.core.wallet.Wallet.update_and_save_state | ( | self, | |
int | next_block | ||
) |