πŸŽ’ Backpack

Android apps from Logos Storage, Delivery, LEZ and Basecamp

Why Backpack?

The whole picture

Backpack appverifies + installsLogos Deliverysigned update noteFollower Basecampmirrors filesLEZ chainmembershipsLoam on the phoneone shared nodePublisher Basecampbackpack_coreLogos Storageindex, APKs, icons

A repo is a key

WhatSizeCarried byTrust
Update note~300 BLogos Delivery topic /backpack/1/<key>/jsonsigned by the repo key; a lower seq is refused
IndexKBsLogos Storage, by the CID in the notesigned by the repo key; seq must match the note
APKs and iconsMBsLogos Storage, by CIDSHA-256 from the index + pinned signing certificate

The chain of trust

index CIDCID + SHA-256pinned signeryesnoAPK bytesAPK signingcertificateAll checks pass?Indexsigned, seq NInstallbackpack:// linkrepo keyUpdate notesigned, seq NRefuse and say why

Publishing

Re-sent whileBasecamp runs,Store keeps itAdd APK orimport fromF-DroidUpload APKs +icons (512 KiBblocks)Upload signedindex, seq N+1Index CIDSend signednote on the repotopicBasecampbackpack_coreLogos DeliveryPublisherLogos StoragePublisherBasecampbackpack_coreLogos StorageLogos Delivery

Invite links

Installing on the phone

Android installer,same signer asthe installed appSubscribe torepo topicLive messages +Store queryNewest signednoteFetch index byCIDDownload jobIndex: verifysignature andseqFetch APK byCIDAPK: checkSHA-256 +signerBackpack appDelivery StoreLoamLogos StorageBackpack appLoamDelivery StoreLogos Storage

The security model

Verify: check it as a phone would

Logos Delivery: the update note

  • The note is tiny: repo key, seq, index CID, mirror list CID
  • Topic /backpack/1/<key>/json on the Logos network
  • Store nodes keep it, so a phone that was offline asks for it on start
  • An announcer re-sends every note hourly and checks Store has it
  • Anyone can re-send a note: it is signed, so relays can't forge one
sendre-send hourlyliveon startBasecamppublisherAnnouncer hubPhonesRelayStore nodes

Logos Storage: the files

Loam: one node for every app on the phone

BackpackDelivery nodeStorage fetch jobsqueue, cache 1 GiBLoam appshared nodeLogos networkQaku, KYM, Kith…ScalaLogos Storage

Loam Storage jobs

Private repos

Member repos: a new key every epoch

new random keyencryptswrapped per deviceX25519 + HKDF +AES-GCMits blobits blobno blobKey bundle on StorageEpoch keyRemoved phoneIndex on StorageMember phone AMember phone BPublisher Basecamp

Paying with LEZ

Join, pay, receive

Wrap epoch key,publish #N+1Unwrap key,read the repoJoin, pay onemonthregister + pay(real proof)PollmembershipsNew paid deviceNote overDeliveryLEZ chainMemberMemberBasecampPublisherBasecampMember phoneMemberMemberBasecampLEZ chainPublisherBasecampMember phone

On the public LEZ testnet

StepTime (real proofs)
Create the repo config147 s
Register + pay155 s
Renew~130 s
Remove a device134 s

Backpack in Basecamp

  • One app, two sides:
    • Following: repos you read, pay for, mirror
    • My repos: repos you publish
  • No terminal: publish, invite links + QR, F-Droid import, members, all in the window
  • Runs headless too (logosctl): the always-on announcer is backpack_core with no UI
async callsbackpack_coreC++delivery_moduleLEZ FFIbackpack_accessloam_corestorage_modulebackpack_uiQML view

Followers become mirrors

Mirrors in practice

blocksblocksrelay only: small filesFollower Basecampbehind NATPublic mirror nodePhone via LoamPublisher node

Benefits

Caveats

What we fixed: Storage

What we fixed: Delivery

What we fixed: Basecamp and phone

How we got here

DateMilestone
Oct 22First repo on Logos Storage
Oct 23Update notes over Delivery, Loam Storage jobs, first audit
Oct 26Public repo
Oct 27Private and member repos, the Basecamp app
Oct 29LEZ memberships on the public testnet
Oct 30Followers mirror
Nov 2Public release, announcer hub
Nov 3Private repos in Basecamp, SDS dropped

Try it

Thank you

← β†’ / space Β· f fullscreen