Storing keyshards for ecdsa signing #58
-
I have been playing with the ElGamal and ecdsa signing examples. In the current demos, a new key is generated each time. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
A quick solution is to use Python's For example, if import pickle
s = pickle.dumps(x)
print(s)
x = pickle.loads(s) With |
Beta Was this translation helpful? Give feedback.
A quick solution is to use Python's
pickle
module to (de)serialize the keys used by the MPC parties.For example, if
x
is a SecureObject holding (a share of) the private key you can convert to/from a Python bytestring usingWith
pickle.dump()
andpickle.load()
you can directly use a file to store the keys.