
A simple Automated Market Maker (AMM) - Starknet Guide
In this tutorial, we’ll review the code of a simple AMM, written as a StarkNet contract, highlighting specific implementation details. The contract is deployable (and is actually deployed – go check it out) to the StarkNet Alpha release, and will be seamlessly deployable and compatible with future StarkNet releases. We will start by describing the scope of the contract functionality, and after that, we will dive into the implementation. Finally, we’ll show how to invoke the demo contract’s fu...

A simple Automated Market Maker (AMM) - Starknet Guide
In this tutorial, we’ll review the code of a simple AMM, written as a StarkNet contract, highlighting specific implementation details. The contract is deployable (and is actually deployed – go check it out) to the StarkNet Alpha release, and will be seamlessly deployable and compatible with future StarkNet releases. We will start by describing the scope of the contract functionality, and after that, we will dive into the implementation. Finally, we’ll show how to invoke the demo contract’s fu...

Voting system - Cairo Starknet
In this section we will write Cairo code for a small voting system. This voting system can be used, for example, to run a secure (non-private) voting with a lot of voters on a blockchain. We will assume that each voter has a pair of private and public keys (for the ECDSA signature scheme) and that the list of voters’ public keys is fixed. Each voter may vote “Yes” (1) or “No” (0). The system will not guarantee anonymity. This section assumes some basic knowledge of cryptographic primitives su...

Voting system - Cairo Starknet
In this section we will write Cairo code for a small voting system. This voting system can be used, for example, to run a secure (non-private) voting with a lot of voters on a blockchain. We will assume that each voter has a pair of private and public keys (for the ECDSA signature scheme) and that the list of voters’ public keys is fixed. Each voter may vote “Yes” (1) or “No” (0). The system will not guarantee anonymity. This section assumes some basic knowledge of cryptographic primitives su...