Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
zeth.core.signing.SigningVerificationKey Class Reference

Public Member Functions

def __init__ (self, G1 ppk, G1 spk)
 
bytes to_bytes (self)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

SigningVerificationKey from_json_dict (Dict[str, Any] json_dict)
 

Public Attributes

 ppk
 
 spk
 

Detailed Description

An OT-Schnorr verification key.

Definition at line 25 of file signing.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.signing.SigningVerificationKey.__init__ (   self,
G1  ppk,
G1  spk 
)

Definition at line 29 of file signing.py.

29  def __init__(self, ppk: G1, spk: G1):
30  self.ppk = ppk
31  self.spk = spk
32 

Member Function Documentation

◆ from_json_dict()

SigningVerificationKey zeth.core.signing.SigningVerificationKey.from_json_dict ( Dict[str, Any]  json_dict)
static

Definition at line 43 of file signing.py.

43  def from_json_dict(json_dict: Dict[str, Any]) -> SigningVerificationKey:
44  return SigningVerificationKey(
45  ppk=g1_from_json_dict(json_dict["ppk"]),
46  spk=g1_from_json_dict(json_dict["spk"]))
47 
48 
Here is the call graph for this function:

◆ to_bytes()

bytes zeth.core.signing.SigningVerificationKey.to_bytes (   self)

Definition at line 33 of file signing.py.

33  def to_bytes(self) -> bytes:
34  return g1_to_bytes(self.ppk) + g1_to_bytes(self.spk)
35 
Here is the call graph for this function:

◆ to_json_dict()

Dict[str, Any] zeth.core.signing.SigningVerificationKey.to_json_dict (   self)

Definition at line 36 of file signing.py.

36  def to_json_dict(self) -> Dict[str, Any]:
37  return {
38  "ppk": g1_to_json_dict(self.ppk),
39  "spk": g1_to_json_dict(self.spk),
40  }
41 
Here is the call graph for this function:

Member Data Documentation

◆ ppk

zeth.core.signing.SigningVerificationKey.ppk

Definition at line 30 of file signing.py.

◆ spk

zeth.core.signing.SigningVerificationKey.spk

Definition at line 31 of file signing.py.


The documentation for this class was generated from the following file:
zeth.core.signing.g1_from_json_dict
G1 g1_from_json_dict(Dict[str, Any] json_dict)
Definition: signing.py:235
zeth.core.signing.g1_to_bytes
bytes g1_to_bytes(G1 group_el)
Definition: signing.py:217
zeth.core.signing.g1_to_json_dict
Dict[str, Any] g1_to_json_dict(G1 group_el)
Definition: signing.py:228