Skip to content

Storing keyshards for ecdsa signing #58

Answered by lschoe
bonecruizer asked this question in Q&A
Discussion options

You must be logged in to vote

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 using

import pickle
s = pickle.dumps(x)
print(s)
x = pickle.loads(s)

With pickle.dump() and pickle.load() you can directly use a file to store the keys.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bonecruizer
Comment options

@lschoe
Comment options

@bonecruizer
Comment options

@lschoe
Comment options

Answer selected by lschoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants