perun-network / perun-polkadot-pallet Goto Github PK
View Code? Open in Web Editor NEWPerun channels on Polkadot.
Home Page: https://perun.network/
License: Apache License 2.0
Perun channels on Polkadot.
Home Page: https://perun.network/
License: Apache License 2.0
It is currently possible to dispute channels that were never funded. This could be used to inflate the on-chain state.
Im not sure if it is really a problem but it seems weird since the on-chian state should be minimal.
Add CodeCov to the CI so that it shows up here: https://app.codecov.io/gh/perun-network/perun-polkadot-pallet.
Seemed to work in the past.
Currently, we store the full state on-chain. However, as an optimization we could only store the hash of the state and provide the state always in the calldata. Then we simply check whether the hash of the provided state matches the hash in the state registry. Thereby we save on-chain storage.
Remove the markdown-link-check-disable
from the README
once the node repo is public.
The number of participants, and therefore the number of off-chain signatures is currently not limited.
The implementer should also check for other cases of arbitrary long inputs.
To get some deterministic bench-marking results, all inputs should have defined maximum lengths.
Currently, the Pallet does not allow to recover funds from an unfunded channel. A dispute conclusion will just fail in this case.
perun-polkadot-pallet/src/lib.rs
Line 466 in b5a1897
We need to revise the Pallet so that we payout the initial deposits in case of an underfunded channel.
Currently, the conclude functionality has two writes:
Problem: There is a risk that the first transaction goes through, while the second fails. In this case we might end up in an inconsistent state.
We need to investigate further whether the current solution is problematic and if so, how to resolve the situation. Maybe using the transaction decorator might be a solution, as pointed out here.
The version is a small object. Shouldn't be a problem to persist it.
Originally posted by @matthiasgeihs in perun-network/perun-polkadot-backend#3 (comment)
Time durations and time points currently both use Seconds
which is not easy to understand.
Either add two different types or at least alias them.
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.