[tor-commits] [stem/master] Drop Ed25519 certificate encoded attribute

atagar at torproject.org atagar at torproject.org
Mon Feb 10 03:14:50 UTC 2020


commit 9aa0988b116841c4c845419136897521065b851d
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Feb 9 17:36:31 2020 -0800

    Drop Ed25519 certificate encoded attribute
    
    Redundant with the to_base64() method.
---
 stem/descriptor/certificate.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/stem/descriptor/certificate.py b/stem/descriptor/certificate.py
index 950fcf6b..fed16bac 100644
--- a/stem/descriptor/certificate.py
+++ b/stem/descriptor/certificate.py
@@ -137,12 +137,10 @@ class Ed25519Certificate(object):
   Base class for an Ed25519 certificate.
 
   :var int version: certificate format version
-  :var unicode encoded: base64 encoded ed25519 certificate
   """
 
   def __init__(self, version):
     self.version = version
-    self.encoded = None  # TODO: remove in stem 2.x
 
   @staticmethod
   def unpack(content):
@@ -236,10 +234,6 @@ class Ed25519Certificate(object):
   def __str__(self):
     return self.to_base64(pem = True)
 
-  @staticmethod
-  def parse(content):
-    return Ed25519Certificate.from_base64(content)  # TODO: drop this alias in stem 2.x
-
 
 class Ed25519CertificateV1(Ed25519Certificate):
   """





More information about the tor-commits mailing list