This is an Android DApp that helps coordinate marches and activism activities under an anonymity layer using geofence validation and zk-SNARK (Zero-Knowledge Succinct Non-Interactive Argument of Knowl
Requirements
To run this app on your mobile end, you will need:
To interact with the ZCash Blockchain on your Android Dapp, you will need to use install some libraries. For this, let's place this under the graddle app file:
To connect to the ZCash Blockchain, either with the test or main net, we will need to initialize the connection. To have an accessible way to call it on all the DApp, we created the following two functions on the APP.kt file:
fun onOpenWallet() {
val initializer = Initializer(this, host = config.host, port = config.port)
initializer.open(config.newWalletBirthday())
synchronizer = Synchronizer(initializer)
synchronizer?.start(appScope)
}
fun onCreateWallet(seedPhrase: String) {
val initializer = Initializer(this, host = config.host, port = config.port)
val seed: ByteArray = Mnemonics.MnemonicCode(seedPhrase.toCharArray()).toSeed()
initializer.new(seed, config.newWalletBirthday())
}
Read transactions
To read a transaction from the Blockchain, once we have an initialized wallet, we can call: