Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Public Attributes | List of all members
libzeth::zeth_note Class Reference

#include <note.hpp>

Collaboration diagram for libzeth::zeth_note:
Collaboration graph
[legend]

Public Member Functions

 zeth_note (const bits256 &a_pk, const bits64 &value, const bits256 &rho, const bits256 &r)
 
 zeth_note ()
 
bool is_zero_valued () const
 

Public Attributes

bits256 a_pk
 
bits64 value
 
bits256 rho
 
bits256 r
 

Detailed Description

Definition at line 15 of file note.hpp.

Constructor & Destructor Documentation

◆ zeth_note() [1/2]

libzeth::zeth_note::zeth_note ( const bits256 a_pk,
const bits64 value,
const bits256 rho,
const bits256 r 
)
inline

Definition at line 25 of file note.hpp.

30  : a_pk(a_pk), value(value), rho(rho), r(r)
31  {
32  }

◆ zeth_note() [2/2]

libzeth::zeth_note::zeth_note ( )
inline

Definition at line 34 of file note.hpp.

34 {}

Member Function Documentation

◆ is_zero_valued()

bool libzeth::zeth_note::is_zero_valued ( ) const
inline

Definition at line 36 of file note.hpp.

36 { return value.is_zero(); }
Here is the call graph for this function:

Member Data Documentation

◆ a_pk

bits256 libzeth::zeth_note::a_pk

Definition at line 18 of file note.hpp.

◆ r

bits256 libzeth::zeth_note::r

Definition at line 21 of file note.hpp.

◆ rho

bits256 libzeth::zeth_note::rho

Definition at line 20 of file note.hpp.

◆ value

bits64 libzeth::zeth_note::value

Definition at line 19 of file note.hpp.


The documentation for this class was generated from the following file:
libzeth::zeth_note::r
bits256 r
Definition: note.hpp:21
libzeth::zeth_note::value
bits64 value
Definition: note.hpp:19
libzeth::bits::is_zero
bool is_zero() const
libzeth::zeth_note::a_pk
bits256 a_pk
Definition: note.hpp:18
libzeth::zeth_note::rho
bits256 rho
Definition: note.hpp:20