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

Public Member Functions

def __init__ (self, OwnershipSecretKey a_sk, EncryptionSecretKey k_sk)
 
str to_json (self)
 

Static Public Member Functions

ZethAddressPriv from_json (str key_json)
 

Detailed Description

Secret half of a zethAddress. addr_sk = (a_sk and k_sk)

Definition at line 47 of file zeth_address.py.

Constructor & Destructor Documentation

◆ __init__()

def zeth.core.zeth_address.ZethAddressPriv.__init__ (   self,
OwnershipSecretKey  a_sk,
EncryptionSecretKey  k_sk 
)

Definition at line 51 of file zeth_address.py.

51  def __init__(self, a_sk: OwnershipSecretKey, k_sk: EncryptionSecretKey):
52  self.a_sk: OwnershipSecretKey = a_sk
53  self.k_sk: EncryptionSecretKey = k_sk
54 

Member Function Documentation

◆ from_json()

ZethAddressPriv zeth.core.zeth_address.ZethAddressPriv.from_json ( str  key_json)
static

Definition at line 59 of file zeth_address.py.

59  def from_json(key_json: str) -> ZethAddressPriv:
60  return ZethAddressPriv._from_json_dict(json.loads(key_json))
61 
Here is the call graph for this function:

◆ to_json()

str zeth.core.zeth_address.ZethAddressPriv.to_json (   self)

Definition at line 55 of file zeth_address.py.

55  def to_json(self) -> str:
56  return json.dumps(self._to_json_dict())
57 
Here is the call graph for this function:

The documentation for this class was generated from the following file: