Phone guide

Use your PCOC on Android with the groundinglab build of Primal, the popular open-source Nostr client.

The app download is on Apps. To make your PCOC on a computer, see the desktop guide. More guides are on the Help page.

How to use PCOC with Android (1:39). Also as a vertical video.

Watch the video, or follow the short steps below.

  1. Get the app

    On Apps, download the debug APK. Side-load only. It is not on the Play Store. It is debug-signed with the debug key. You can also build it from source: app 3.5.50, commit 5a1d4f5f3, ./gradlew :app:assembleAospDebug. Rebuildable from the commit; not bit-reproducible. That commit is on primal-pcoc main (#54, merged). Tag android-v3.5.50.

    1. Download the APK.
    2. Copy it onto the phone if you downloaded it on a computer.
    3. Open the APK.
    4. If Android asks, allow this source to install apps.
    5. Confirm the install, then open the app.
  2. Sign in, or create an account

    Your PCOC belongs to this account's key. Open Accounts.

    • To use a PCOC you made on the desktop, press Add an existing account. On Sign In, press Paste Your Key, paste the same nsec you used on the desktop, and press Sign In.
    • To make a PCOC on this phone, you can also press Create a new account.
    Accounts sheet with Create a new account and Add an existing account.
    Create a new account (1), or Add an existing account (2).
  3. Get your PCOC onto the phone

    There are three ways to do it.

    One. Make it on the desktop, and send it to your phone. Press Send to my phone on the desktop. It arrives as a Nostr message to the same account, so the phone app must be signed in with the same nsec you used on the desktop, pasted into the app. A remote signer such as Amber cannot open the message. In the app, open Messages: when the message arrives, the app shows PCOC .cbor DM received. as a dialog, and as a notification with Approve and Dismiss if notifications are allowed for the app. Tap Approve to save it for sign-in. Dismiss stores nothing.

    Notice PCOC .cbor DM received, with Dismiss and Approve.
    Approve (1) saves it. Dismiss (2) stores nothing.

    Two. Import the PCOC. Tap Import PCOC. Then tap Choose a file, and pick the PCOC, pcoc.cbor. The screen says the PCOC is saved for this account.

    Import PCOC with Choose a file.
    Choose a file (1).

    Three. Make it on the phone itself. Tap Create new PCOC, then Start hike. This needs a capable phone, like a modern mid-range Android. Making one takes at least 18 Bitcoin blocks, typically around three hours or more, but it varies. The device holds about 256 MiB the whole time. Stop ends it without writing a PCOC.

    Create new PCOC with Start hike.
    Start hike (1).
    Hike running: Stage 9 of 18 completed, with Stop.
    The hike running. Stop (1).

    When it's done, save the PCOC, or send it on.

    Object written, with Send to… and Save to file.
    Send to… (1) or Save to file (2).
  4. Verify it, if you like

    This step is optional. Tap Verify in the PCOC menu to measure the saved PCOC.

  5. Sign in

    On the website, open https://groundinglab.io/signin/ and press Sign in with PCOC. The page shows a QR code. It lasts about two minutes. New code starts another one. Copy code is the same link, if the camera cannot scan it.

    On the phone, open the PCOC menu and tap Sign in. Or use the Sign in button on the main screen. On your opening sign-in, press Sign in on the short intro.

    Main screen with the Sign in button in the bottom bar.
    The Sign in button on the main screen (1).

    Then scan the code on the website, or tap Paste code and paste the link from Copy code. The screen says Signing in to https://groundinglab.io. It signs with this account and the saved PCOC.

    Sign in camera view with Paste code.
    Scan the QR (1), or Paste code (2).

    When the phone says Sign-in submitted, the website opens Welcome and you are signed in. The phone also says Check the site you're signing in to. Press Close to leave that sheet. If this gate later refuses the PCOC, Welcome says so.

Troubleshooting

Desktop guide