hillstreetlabs / kimono Goto Github PK
View Code? Open in Web Editor NEWπ Opening the kimono one time-lock at a time
π Opening the kimono one time-lock at a time
@dmdque for updateEligibleRevealer
uPort recently bountied the shamir-secret-sharing
for WebAssembly, and it's almost complete.
Might be a good addition for this project?
Since revealers can participate in any number of secret revealing cycles, it's impossible to stake everything upfront.
Postpone the transferring of staked funds until the "propose" step, when a creator selects n nodes to participate in the scheme.
Unfortunately this will require the client to query all nodes to check that they have the correct balance and approved amount, or risk failure.
Best-case behavior:
S
ERASE tokens.Notes:
reward / (N + 1)
, where N
is the number of secret fragments (i.e. the reward the revealer would get if every revealer reveals their fragments and they are not the reconstructor).We want to ensure that the staked funds corresponds with the committed messages (which contain all the hashes of the fragments).
There are two approaches:
Make the "propose" and "create" steps atomic. Since createMessage consumes the hash of the IPFS location, the file must have already been uploaded (complete with all the fragments encrypted with revealers' public keys.) This requires the revealers to be "pre-selected" before performing the propose-create atomic action.
Do some internal accounting to keep track of which funds have been staked for a secret revealing scheme that is actually active.
We're going with the simpler approach (1.) for now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.