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.SigningSecretKey Class Reference

Public Member Functions

def __init__ (self, FQ x, FQ y, G1 y_g1)
 
Dict[str, Any] to_json_dict (self)
 

Static Public Member Functions

SigningSecretKey from_json_dict (Dict[str, Any] json_dict)
 

Public Attributes

 psk
 
 ssk
 

Detailed Description

An OT-Schnorr signing key.

Definition at line 49 of file signing.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.signing.SigningSecretKey.__init__ (   self,
FQ  x,
FQ  y,
G1  y_g1 
)

Definition at line 53 of file signing.py.

53  def __init__(self, x: FQ, y: FQ, y_g1: G1):
54  self.psk = x
55  self.ssk = (y, y_g1)
56 

Member Function Documentation

◆ from_json_dict()

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

Definition at line 65 of file signing.py.

65  def from_json_dict(json_dict: Dict[str, Any]) -> SigningSecretKey:
66  return SigningSecretKey(
67  x=fq_from_hex(json_dict["psk"]),
68  y=fq_from_hex(json_dict["ssk_y"]),
69  y_g1=g1_from_json_dict(json_dict["ssk_y_g1"]))
70 
71 
Here is the call graph for this function:

◆ to_json_dict()

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

Definition at line 57 of file signing.py.

57  def to_json_dict(self) -> Dict[str, Any]:
58  return {
59  "psk": fq_to_hex(self.psk),
60  "ssk_y": fq_to_hex(self.ssk[0]),
61  "ssk_y_g1": g1_to_json_dict(self.ssk[1]),
62  }
63 
Here is the call graph for this function:

Member Data Documentation

◆ psk

zeth.core.signing.SigningSecretKey.psk

Definition at line 54 of file signing.py.

◆ ssk

zeth.core.signing.SigningSecretKey.ssk

Definition at line 55 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.fq_to_hex
str fq_to_hex(FQ fq_element)
Definition: signing.py:209
zeth.core.signing.g1_to_json_dict
Dict[str, Any] g1_to_json_dict(G1 group_el)
Definition: signing.py:228
zeth.core.signing.fq_from_hex
FQ fq_from_hex(str fq_hex)
Definition: signing.py:213