spike init
should create Shamir shards and save it on the user's local machine.
#45
Labels
good first issue
Good for newcomers
Once we have this functionality, we will use it further.
Shamir's Secret Sharing is a standard algorithm and there are many implementations; so writing it from scratch does not make sense.
There is This library that offers an intuitive API and also is compatible with our (and CNCF's) licensing model (i.e. we can just
go get
it and we'll be good to go)This task involves the following:
spike init
is called) we will compute N shares and store them in memory.~/.spike/recovery/recovery-token-$shareNumber.spike
That's the entirety of this current task.
Later once we have >1 SPIKE Keepers instances up and running, we will design a method to distribute the shards to Keeper instances; but that's out of the scope of this task.
Ref:
Wikipedia Article about Shamir's Secret Sharing
The text was updated successfully, but these errors were encountered: