elixir-omg icon indicating copy to clipboard operation
elixir-omg copied to clipboard

As a user I would like to understand on what constitutes as a valid block so that I can create my own block validation implementation.

Open thec00n opened this issue 4 years ago • 3 comments

Description

Currently there is no specification on what constitutes as a valid block. Block validation is a critical function of the network and validation should not strictly be limited to the watcher but be possible in any implementation that a user chooses. Similar to transaction validation https://github.com/omisego/elixir-omg/blob/master/docs/transaction_validation.md there should be a spec for block validation.

thec00n avatar Dec 03 '19 03:12 thec00n

@achiurizo ex_plasma?

InoMurko avatar Dec 04 '19 11:12 InoMurko

yep, it's certainly a good place to put this kind of knowledge/behavior in ex_plasma. It can already handle crafting transactions, utxos(input/output), and block formations.

Idea I'm playing around is if it makes sense to use the ecto changeset functionality to help implement validation. It also would pave the way towards using ecto as our storage driver.

achiurizo avatar Dec 04 '19 14:12 achiurizo

Idea I'm playing around is if it makes sense to use the ecto changeset

this in particular is on my mind since long, never got to it :cry:

pdobacz avatar Dec 04 '19 16:12 pdobacz