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