|
@@ -20,10 +20,9 @@ class backend:
|
|
class base(keygen_base):
|
|
class base(keygen_base):
|
|
|
|
|
|
def __init__(self,cfg):
|
|
def __init__(self,cfg):
|
|
-
|
|
|
|
|
|
+ super().__init__(cfg)
|
|
from ...proto.xmr.params import mainnet
|
|
from ...proto.xmr.params import mainnet
|
|
self.proto_cls = mainnet
|
|
self.proto_cls = mainnet
|
|
-
|
|
|
|
from ...util2 import get_keccak
|
|
from ...util2 import get_keccak
|
|
self.keccak_256 = get_keccak(cfg)
|
|
self.keccak_256 = get_keccak(cfg)
|
|
|
|
|
|
@@ -35,6 +34,8 @@ class backend:
|
|
|
|
|
|
class nacl(base):
|
|
class nacl(base):
|
|
|
|
|
|
|
|
+ production_safe = True
|
|
|
|
+
|
|
def __init__(self,cfg):
|
|
def __init__(self,cfg):
|
|
super().__init__(cfg)
|
|
super().__init__(cfg)
|
|
from nacl.bindings import crypto_scalarmult_ed25519_base_noclamp
|
|
from nacl.bindings import crypto_scalarmult_ed25519_base_noclamp
|
|
@@ -49,6 +50,8 @@ class backend:
|
|
|
|
|
|
class ed25519(base):
|
|
class ed25519(base):
|
|
|
|
|
|
|
|
+ production_safe = False
|
|
|
|
+
|
|
def __init__(self,cfg):
|
|
def __init__(self,cfg):
|
|
super().__init__(cfg)
|
|
super().__init__(cfg)
|
|
from ...contrib.ed25519 import edwards,encodepoint,B,scalarmult
|
|
from ...contrib.ed25519 import edwards,encodepoint,B,scalarmult
|