| 
| def  | __init__ (self, OwnershipPublicKey a_pk, EncryptionPublicKey k_pk) | 
|   | 
| str  | __str__ (self) | 
|   | 
Public half of a zethAddress.  addr_pk = (a_pk and k_pk)
 
Definition at line 18 of file zeth_address.py.
 
◆ __init__()
      
        
          | def zeth.core.zeth_address.ZethAddressPub.__init__  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
          OwnershipPublicKey  | 
          a_pk,  | 
        
        
           | 
           | 
          EncryptionPublicKey  | 
          k_pk  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 22 of file zeth_address.py.
   22     def __init__(self, a_pk: OwnershipPublicKey, k_pk: EncryptionPublicKey):
 
   23         self.a_pk: OwnershipPublicKey = a_pk
 
   24         self.k_pk: EncryptionPublicKey = k_pk
 
 
 
 
◆ __str__()
      
        
          |  str zeth.core.zeth_address.ZethAddressPub.__str__  | 
          ( | 
            | 
          self | ) | 
           | 
        
      
 
Write the address as "<ownership-key-hex>:<encryption_key_hex>".
(Technically the ":" is not required, since the first key is written
with fixed length, but a separator provides some limited sanity
checking).
 
Definition at line 26 of file zeth_address.py.
   26     def __str__(self) -> str:
 
   28         Write the address as "<ownership-key-hex>:<encryption_key_hex>". 
   29         (Technically the ":" is not required, since the first key is written 
   30         with fixed length, but a separator provides some limited sanity 
   35         return f
"{a_pk_hex}:{k_pk_hex}" 
 
 
 
◆ parse()
  
  
      
        
          |  ZethAddressPub zeth.core.zeth_address.ZethAddressPub.parse  | 
          ( | 
          str  | 
          key_hex | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Definition at line 38 of file zeth_address.py.
   38     def parse(key_hex: str) -> ZethAddressPub:
 
   39         owner_enc = key_hex.split(
":")
 
   40         if len(owner_enc) != 2:
 
   41             raise Exception(
"invalid JoinSplitPublicKey format")
 
   44         return ZethAddressPub(a_pk, k_pk)
 
 
 
 
The documentation for this class was generated from the following file: