governance-contract's People
governance-contract's Issues
Signed data replay protection
While there are no economic benefits of replaying signatures in Elector/Config it is still expedient to
- add cross-network replay protection by adding
global_id
to the signed data and checking that it is equal to new GLOBALID - signed data should include
sender
field and check it, thus eliminating risks of replay.
No negative incentives for voting for any complaint
There can be some funds required to lock on each vote, and those will only be returned once the vote is passed.
Alternatively, validators may suggest complaint on other validators who voted for invalid complaints
Elector sends recovered stake with bounce=true instead of bounce=false
The elector currently sends back the stake with bouce=true:
This is not elegant since it's potentially millions of ton and the elector doesn't handle bounced messages. If we somehow reach a weird state that the depositor is frozen, the stake will be lost.
It's not easy to reach a state where the depositor is frozen, because it just sent a transaction to ask to recover state, but still, this should be fixed.
During the next elector update, please consider sending recovered stake with bounce=false, so if the recipient is somehow frozen, it will still be received.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.