@@ -18,6 +18,7 @@ class Key:
1818 License key related methods. More docs: https://app.cryptolens.io/docs/api/v3/Key.
1919 """
2020
21+ @staticmethod
2122 def activate (token , rsa_pub_key , product_id , key , machine_code , fields_to_return = 0 ,\
2223 metadata = False , floating_time_interval = 0 ,\
2324 max_overdraft = 0 ):
@@ -58,7 +59,8 @@ def activate(token, rsa_pub_key, product_id, key, machine_code, fields_to_return
5859 return (None , "The signature check failed." )
5960 except Exception :
6061 return (None , "The signature check failed." )
61-
62+
63+ @staticmethod
6264 def create_trial_key (token , product_id , machine_code ):
6365 """
6466 Calls the CreateTrialKey method in Web API 3 and returns a tuple containing
@@ -87,7 +89,7 @@ def create_trial_key(token, product_id, machine_code):
8789
8890 return (jobj ["key" ], "" )
8991
90-
92+ @ staticmethod
9193 def deactivate (token , product_id , key , machine_code , floating = False ):
9294 """
9395 Calls the Deactivate method in Web API 3 and returns a tuple containing
@@ -122,6 +124,7 @@ def deactivate(token, product_id, key, machine_code, floating = False):
122124
123125class Helpers :
124126
127+ @staticmethod
125128 def GetMachineCode ():
126129
127130 """
@@ -138,6 +141,7 @@ def GetMachineCode():
138141 else :
139142 return HelperMethods .get_SHA256 (HelperMethods .compute_machine_code ())
140143
144+ @staticmethod
141145 def IsOnRightMachine (license_key , is_floating_license = False , allow_overdraft = False ):
142146
143147 """
0 commit comments