Skip to content

kuiralabs/example-bboard-android

Repository files navigation

BBoard — Android (Kuira SDK example)

A shared on-chain bulletin board for Midnight, built on the Kuira Android SDK. One slot: anyone connected to the board can post a message, and the poster can take it down — each action is a real Compact contract transaction, proved on the device.

It's the SDK's end-to-end "hello world": Sigil identity + embedded wallet (both drop-in SDK panels), then a contract with two circuits (post / takeDown) and a lossless typed ledger read for the current message.

What it shows

  • IdentitySigilStatusPanel from the SDK. One biometric prompt forges a passkey-derived DID + wallet seed (no seed phrase).
  • WalletWalletStatusPanel from the SDK. NIGHT + DUST balance, receive QR, dust registration, network switch.
  • Contractbboard.compact (contract/src/), compiled to JS + proving keys under contract/src/managed/bboard. The io.github.kuiralabs.contract Gradle plugin syncs it into the app's assets at build (kuiraContract { … } in app/build.gradle.kts).
  • dApp logicBBoardViewModel drives deploy → posttakeDown, with a staged progress bar (ContractCallProgressBar) over the prove/balance/submit wait.

Run

./gradlew :app:installDebug

Then forge a sigil, fund the wallet on localnet, deploy a board, and post.

This example pins io.github.kuiralabs:dapp-ui and the io.github.kuiralabs.contract plugin, resolved from Maven Central. To point it at your own passkey domain, set rpId in IdentityConfigModule and host a matching assetlinks.json.

License

Apache-2.0 — see LICENSE.

About

BBoard — an on-chain bulletin board for Midnight, built on the Kuira Android SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages