StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

A collection of examples of Cairo smart contracts for Starknet.

Results 43 StarknetByExample issues
Sort by recently updated
recently updated
newest added

In this example, we will demonstrate how to recover the public key from a signature and the signed message hash using `recover_public_key_u32`.

In this section, we show an example of how to perform a Library Call in Cairo using the high-levels `LibraryDispatcher` and `LibraryDispatcherTrait` which perform a `library_call` syscall (reference here https://docs.starknet.io/documentation/architecture_and_concepts/Contracts/system-calls/#library_call)...

Because [CairoByExample](https://github.com/NethermindEth/CairoByExample) is made by mdbook, we could also use the Wasm-Cairo as a playground. Like this PR in Cairo-book Repo https://github.com/cairo-book/cairo-book.github.io/pull/244

**Issue(s):** https://github.com/NethermindEth/StarknetByExample/issues/128 ### Description Added code for Dice Game VRF application. ### Checklist - [x] **CI Verifier:** Run `./scripts/cairo_programs_verifier.sh` successfully - [ ] **Contract Tests:** Added tests to cover the...

**Issue(s):** Close #191 ### Description Please provide a brief description of the changes made in this pull request and how they address the related issue. ### Checklist - [ ]...

**Issue(s):** Close #77 ### Description This is an implementation of the commitment scheme in cairo. The contract uses a commitment scheme where bidders first commit to their bids and later...

**Issue(s):** Close #128 ### Description Built off of https://github.com/NethermindEth/StarknetByExample/pull/183 Explain randomness in the context of blockchain, and Starknet specifically, and provide an example with `CoinFlip` contract. ### Checklist - [x]...

* Map sub-chapter still uses the depreciated `LegacyMap` type, updating the Mapping chapter with the type `Map` * Modify in other section using `LegacyMap` I'll be happy to take care...