Naomi Emmanuel
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Introduction to Starknet Smart Contracts Starknet is a decentralized, permissionless, and scalable layer-2 (L2) ZK-Rollup built on Ethereum. It allows developers to create smart contracts with improved scalability and lower transaction costs while maintaining Ethereum's security. Starknet achieves this by utilizing STARK (Scalable Transparent ARguments of Knowledge) proofs, a type of zero-knowledge proof that ensures the validity of transactions without revealing the details of the computation. ### Key Concepts 1. Scalability: Starknet enhances scalability by batching multiple transactions into a single proof, which is then submitted to the Ethereum mainnet. This reduces the load on Ethereum, allowing for more transactions per second (TPS) and lower gas fees. 2. Security: The security of Starknet is inherited from Ethereum. By leveraging validity proofs, Starknet ensures that all state transitions are valid, maintaining the integrity and security of the network. 3. Decentralization: Starknet is designed to be decentralized, allowing anyone to participate in the network. This decentralization ensures that the network remains open and permissionless, similar to Ethereum. ### Architecture Starknet's architecture includes several key components: 1. Smart Contracts: Smart contracts on Starknet are written in Cairo, a language specifically designed for provable computations. Cairo abstracts the complexities of zero-knowledge proofs, enabling developers to write smart contracts without needing deep cryptographic knowledge. 2. Provers: Provers are responsible for generating STARK proofs that validate the correctness of transactions. These proofs are then verified on the Ethereum mainnet, ensuring the validity of state transitions. 3. Sequencers: Sequencers are nodes that order and execute transactions on Starknet. They generate a batch of transactions, compute the new state, and create a proof for the batch. This proof is then sent to Ethereum for verification. 4. Verifiers: Verifiers are smart contracts on Ethereum that check the validity of the proofs generated by the provers. They ensure that the state transitions on Starknet are correct and consistent. ### Development Workflow Developing smart contracts on Starknet involves several steps: 1. Setup: Install the necessary tools, such as Scarb (Cairo's package manager) and Cairo, to begin developing smart contracts. 2. Writing Contracts: Write smart contracts in Cairo. Cairo's syntax is similar to Rust, making it accessible to developers familiar with modern programming languages. 3. Testing: Test smart contracts locally using the provided testing tools to ensure they function correctly. 4. Deployment: Deploy the smart contracts to the Starknet testnet or mainnet. The deployment process involves interacting with the Starknet sequencers and provers to ensure the contracts are correctly deployed and validated. 5. Interaction: Interact with the deployed contracts using various tools and libraries provided by the Starknet ecosystem. ### Benefits of Starknet 1. High Throughput: By offloading computation to the Starknet layer, it significantly increases the throughput of transactions, making it ideal for applications that require high transaction volumes. 2. Lower Costs: Starknet reduces the cost of transactions by aggregating multiple transactions into a single proof, lowering the gas fees compared to executing each transaction individually on Ethereum. 3. Enhanced Privacy: Using zero-knowledge proofs, Starknet can provide privacy-preserving transactions, ensuring that sensitive information is not exposed on the blockchain. 4. Developer-Friendly: With the Cairo language and comprehensive documentation, Starknet is accessible to developers, enabling them to build and deploy complex smart contracts efficiently. ### Use Cases 1. DeFi Applications: Starknet is well-suited for decentralized finance (DeFi) applications that require high throughput and low transaction costs. 2. Gaming: On-chain games can leverage Starknet for scalable and cost-effective transactions, enabling complex in-game economies. 3. NFTs: Non-fungible tokens (NFTs) can benefit from Starknet's scalability, allowing for the creation and transfer of NFTs with lower fees. 4. Enterprise Solutions: Enterprises can utilize Starknet for scalable and secure blockchain applications, reducing operational costs while maintaining security. ### Conclusion Starknet represents a significant advancement in blockchain scalability and security. By leveraging STARK proofs and the Cairo programming language, it provides a robust platform for developing and deploying smart contracts. Its architecture ensures high throughput, low costs, and enhanced privacy, making it an ideal solution for various blockchain applications.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully