Skip to content

puzzlehq/zksummit_ios_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zksummit_ios_workshop

IMAGE ALT TEXT HERE

Starter code for ZKSummit 10 iOS proving workshop.

Prerequisites (BEFORE cloning the repo):

  • Install brew
  • Install git-lfs (brew install git-lfs)
  • Download Xcode (and add iOS if you don't have it)

Workshop

  1. Navigate to ZKSummit token dapp
  2. Connect your wallet (install puzzle wallet if you don't have it already)
  3. Grab some aleo credits via the faucet (or let one of us know and we can send you some!)
  4. Clone the workshop repo
  5. Open Demo.xcodeproj inside Demo/
  6. Add your private key and a record with credits to pay the fee at the top of ContentView.swift
  7. Build and run (hit the play icon on the top bar)
  8. Execute with the following params (reference code for the program can be found here):
  • Program name: zksummit_token_v10.aleo
  • Function: mint_private
  • Input 1: your address
  • Input 2: a random amount, for example "100u64"
  1. Once execution completes successfully, navigate back to to the ZKSummit token dapp and view your new balance!
  2. Try a transfer execution, or any aleo program you'd like!

Common errors

  • Types for number inputs must be specified, so if your aleo function takes an i32 input, 3 must be formatted as 3i32 in the input field
  • None could not be unwrapped....: Ensure you have added your private keys and fee record in ContentView.swift

About

Starter code for ZKSummit 10 iOS proving workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published