StarknetByExample
StarknetByExample copied to clipboard
A collection of examples of Cairo smart contracts for Starknet.
**Issue(s): #109
In advanced concepts chapter, with security concerns.
Following #96, add a full example of a factory contract in application chapter with events, access control, instances managements ...
Reference: https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-5.md
In this example, we will demonstrate how we can use `check_ecdsa_signature` to verify if (`signature_r`, `signature_s`) is a valid ECDSA signature for the given `public_key` Solidity reference: https://solidity-by-example.org/signature/
Migration to [wevm/vocs](https://github.com/wevm/vocs). Current progress on branch [vocs](https://github.com/NethermindEth/StarknetByExample/tree/vocs)
Explore potential Account chapter with example of simple accounts implementations, multicalls, sessions, keys, ...
There is a problem with the example of solidity-compatible hashes. The way it's currently done is that it calls `keccak_u256s_be_inputs` to hash a span composed of u256 words - however...
The following code snippet can be used to calculate the starknet_keccak of a u256 word. The input must have 32 characters. If the input is shoter, it needs to be...
Related to #70 We can replace `include` with `rustdoc_include` in the mdbook files. This allows readers to expand the contract and view the tests directly in the book (without altering...