@henrlihenrli
Henri
2 years
Storage proofs (SP). It's an unsexy name for a very, very powerful StarkNet tool. #4 in our exploration of why people get excited about StarkNet. Let’s take a look. SP are like CRISPR/Cas9 for blockchain devs.
1
19
68

Replies

@henrlihenrli
Henri
2 years
StarkNet and Cairo let you use inputs like "Use the value of variable X in contract Y at block Z of Ethereum/Bitcoin/whatever, and do something with it". In a trustless manner.
1
1
5
@henrlihenrli
Henri
2 years
Remember earlier, when we talked about how it was hard for chains to understand each other? Let's say you want chain A to read chain B's state. Not "receive a message from B". "Read inside of B".
1
2
5
@henrlihenrli
Henri
2 years
This would cost a lot of gas. Chain A would have to check the correct execution of B; receive its state at a given height; and read from it. Very expensive... unless …wait for it…..computation is cheap.
1
1
4
@henrlihenrli
Henri
2 years
In that case, you can a) generate a proof of execution for chain B up to a certain height b) provide the state at this point c) go through it to find the value(s) you're looking for No storing involved, just computing. Cheap.
1
1
6
@henrlihenrli
Henri
2 years
Okay, so what can you do with that? You can extract trustlessly a snapshot of token balances at a given height, for trustless token-weighted voting. Ping @SnapshotLabs
1
0
7
@henrlihenrli
Henri
2 years
For people who like both BTC and ETH: Do atomic swaps and prove you own bitcoins utxos. You can show what the content of an op_return hash actually was You can extend a multisig from Bitcoin to Ethereum
1
1
6
@henrlihenrli
Henri
2 years
It's easy to prove that you used @CurveFinance before it was cool (ping @DegenScore ) Or play with an NFT on chain B (ping @TheDopeWars ) and prove you own it on chain A You could check out the repo and start building stuff, anon!.
1
1
12
@henrlihenrli
Henri
2 years
By using SPs, you can copy/pasta data trustlessly from any contract, from any chain, at any time. They are like CRISPR/Cas9, for blockchain devs.
1
1
6
@henrlihenrli
Henri
2 years
Next up: f r a c t a l s c a l i n g
@henrlihenrli
Henri
2 years
I've recently prepared a presentation called "Why people get excited about validity rollups". I tried to explain why people seem to want to build on StarkNet instead of how it works.
4
20
92
2
1
9