Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Public Attributes | List of all members
libzeth::joinsplit_input< FieldT, TreeDepth > Class Template Reference

#include <joinsplit_input.hpp>

Collaboration diagram for libzeth::joinsplit_input< FieldT, TreeDepth >:
Collaboration graph
[legend]

Public Member Functions

 joinsplit_input ()
 
 joinsplit_input (std::vector< FieldT > &&witness_merkle_path, const bits_addr< TreeDepth > &address_bits, const zeth_note &note, const bits256 &key, const bits256 &nullifier)
 

Public Attributes

std::vector< FieldT > witness_merkle_path
 
bits_addr< TreeDepth > address_bits
 
zeth_note note
 
bits256 spending_key_a_sk
 
bits256 nullifier
 

Detailed Description

template<typename FieldT, size_t TreeDepth>
class libzeth::joinsplit_input< FieldT, TreeDepth >

We simplify the interface of the joinsplit_input object compared to what Zcash did. In fact, all our fields are going to be computed from another component written in Python or JS, that will use the Ethereum primitives to hash.

Definition at line 21 of file joinsplit_input.hpp.

Constructor & Destructor Documentation

◆ joinsplit_input() [1/2]

template<typename FieldT , size_t TreeDepth>
libzeth::joinsplit_input< FieldT, TreeDepth >::joinsplit_input ( )
inline

Definition at line 33 of file joinsplit_input.hpp.

33 {};

◆ joinsplit_input() [2/2]

template<typename FieldT , size_t TreeDepth>
libzeth::joinsplit_input< FieldT, TreeDepth >::joinsplit_input ( std::vector< FieldT > &&  witness_merkle_path,
const bits_addr< TreeDepth > &  address_bits,
const zeth_note note,
const bits256 key,
const bits256 nullifier 
)
inline

Definition at line 34 of file joinsplit_input.hpp.

42  , note(note)
43  , spending_key_a_sk(key)
45  {
46  }

Member Data Documentation

◆ address_bits

template<typename FieldT , size_t TreeDepth>
bits_addr<TreeDepth> libzeth::joinsplit_input< FieldT, TreeDepth >::address_bits

Definition at line 28 of file joinsplit_input.hpp.

◆ note

template<typename FieldT , size_t TreeDepth>
zeth_note libzeth::joinsplit_input< FieldT, TreeDepth >::note

Definition at line 29 of file joinsplit_input.hpp.

◆ nullifier

template<typename FieldT , size_t TreeDepth>
bits256 libzeth::joinsplit_input< FieldT, TreeDepth >::nullifier

Definition at line 31 of file joinsplit_input.hpp.

◆ spending_key_a_sk

template<typename FieldT , size_t TreeDepth>
bits256 libzeth::joinsplit_input< FieldT, TreeDepth >::spending_key_a_sk

Definition at line 30 of file joinsplit_input.hpp.

◆ witness_merkle_path

template<typename FieldT , size_t TreeDepth>
std::vector<FieldT> libzeth::joinsplit_input< FieldT, TreeDepth >::witness_merkle_path

Definition at line 25 of file joinsplit_input.hpp.


The documentation for this class was generated from the following file:
libzeth::joinsplit_input::note
zeth_note note
Definition: joinsplit_input.hpp:29
libzeth::joinsplit_input::nullifier
bits256 nullifier
Definition: joinsplit_input.hpp:31
libzeth::joinsplit_input::address_bits
bits_addr< TreeDepth > address_bits
Definition: joinsplit_input.hpp:28
libzeth::joinsplit_input::witness_merkle_path
std::vector< FieldT > witness_merkle_path
Definition: joinsplit_input.hpp:25
libzeth::joinsplit_input::spending_key_a_sk
bits256 spending_key_a_sk
Definition: joinsplit_input.hpp:30