Publish capsules: anyone can run a marketplace, ElastOS-signed ones are trusted by default

未關閉
#525 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
rust

研究方向

Start by reading related issues #500 and #281, then inspect the existing elastos publishing and model catalog flows mentioned in the issue. The issue leaves the capsule identity hash unresolved and describes changes across packaging, signing, catalogs, trust, hosting, updates, withdrawal, templates, and documentation. Done means completing the end-to-end acceptance scenarios listed in the issue, including publishing and installing a capsule from another Home.

由索引模型根據 Issue 內容生成。

描述

enhancement

Problem

A developer can make and sign a capsule, but elastos publish only stores it on their own Home (#500), and Marketplace trusts only the ElastOS release. Nobody outside the release can offer a game, a document, media or an app to other Homes.

Direction (Anders, 3 Nov 2026)

Everyone can create their own marketplace. Marketplaces signed by ElastOS are trusted by default.

Model

  • Package: a capsule folder becomes one bundle named by its hash. Which hash form becomes the identity is settled here, after the reproducibility tests.
  • Sign: the publisher signs a record outside the bundle: "this hash is my capsule X, version Y", with their own DID key. Several publishers or reviewers can vouch for the same hash.
  • A marketplace is a signed catalog: a list of records with size, description and icon, signed by whoever runs that marketplace, carrying its name bound to its DID. It uses the same shape as the model catalog, so there is one catalog format.
  • Trust: every Home trusts the ElastOS catalogs by default. Any other marketplace is added only by the owner, with approval in Inbox that shows its name, DID and where the link came from. Marketplace labels each item with who signed it and whether that marketplace is trusted by ElastOS. The ElastOS catalog can list marketplaces it vouches for. The owner can remove any added marketplace.
  • Names belong to their publisher (publisher plus name), so two publishers can ship apps with the same name. A game names its player by hash or through a trusted catalog.
  • Hosting: bytes come over Carrier from any Home that holds them and announces it, as model packages do (#281). The catalog says whether an item is held only by its publisher or replicated.
  • Updates are new records from the same publisher with a higher version. The Home offers them, asks again in Inbox when permissions or the player change, and never replaces bytes silently.
  • Withdrawal: a publisher can withdraw a record, and an ElastOS block list stops a harmful hash in every marketplace. A Home refuses to launch a withdrawn or blocked hash and tells the owner.
  • Tools: the elastos command works without a repository checkout: pack, sign (DID record), catalog add|withdraw|publish, plus templates (a game for the GBA Emulator, a document or media item, a web app shown in Home) and a guide. These replace the current manifest signature, raw trusted_keys, the elastos.component/v1 scaffold and the old templates.

Done means

  • Someone outside the release packs, signs and publishes a free content capsule (a game for the GBA Emulator) into their own marketplace from a fresh install, following the guide.
  • Another Home adds that marketplace (Inbox approval shows name, DID and source), sees the item labelled as not trusted by ElastOS, gets it, opens it, and removes the marketplace again.
  • An item in the ElastOS catalog shows as trusted and installs with no extra approval step beyond Get.
  • Same name from two publishers: both install, neither replaces the other.
  • Update with changed permissions asks again; withdrawal and the ElastOS block list stop a launch with a clear message.
  • The item is fetched from a holder other than the publisher while the publisher's Home is offline.
  • Old signing paths and templates removed; docs updated.

Out of scope

Paid items (licences, protected media #388, paid services) and apps from other publishers that run code (they wait for confined workers, #471, #173).

Related

#333 (Get and Remove for release items, 2.1.0), #465, #274, #213, #281, #500, #285, #171, #192 (closed; its naming, update and revocation Done means are carried here).

主要語言
Rust
星號
6
分支
2
平均合併
1 天 3 小時
30 天內合併 PR
42

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

elastos/elastos-runtime 的其他 Issue

查看 elastos/elastos-runtime 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。