Just do it in an SQL database and write the result on the Blockchain
Literally describing LN
LN is a network of SQL databases that have to agree on state, yes.
reply