SSS
This commit is contained in:
parent
931500d070
commit
cce99f81a4
|
@ -76,6 +76,7 @@ def siteCreate(sss):
|
||||||
k=int(sss.split(":")[0])
|
k=int(sss.split(":")[0])
|
||||||
n=int(sss.split(":")[1])
|
n=int(sss.split(":")[1])
|
||||||
if k>n: raise Exception("Required parts can't be bigger than parts amount.")
|
if k>n: raise Exception("Required parts can't be bigger than parts amount.")
|
||||||
|
|
||||||
logging.info("Generating new privatekey...")
|
logging.info("Generating new privatekey...")
|
||||||
from src.Crypt import CryptBitcoin
|
from src.Crypt import CryptBitcoin
|
||||||
privatekey = CryptBitcoin.newPrivatekey()
|
privatekey = CryptBitcoin.newPrivatekey()
|
||||||
|
@ -114,7 +115,7 @@ def siteSign(address,sss, privatekey=None):
|
||||||
sss = sss.split(":")
|
sss = sss.split(":")
|
||||||
|
|
||||||
privatekey = PTHSS.recover_secret(sss)
|
privatekey = PTHSS.recover_secret(sss)
|
||||||
|
|
||||||
from Site import Site
|
from Site import Site
|
||||||
logging.info("Signing site: %s..." % address)
|
logging.info("Signing site: %s..." % address)
|
||||||
site = Site(address, allow_create = False)
|
site = Site(address, allow_create = False)
|
||||||
|
|
Loading…
Reference in New Issue