mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
OpenFile and OpenDisk carry OpenServer 0.2's developer block, and OpenFile names fi1zes.com
A publisher and a disk each say which CLI drives them, in the same `developer` shape OpenServer 0.2 defines, so a marketplace shows one install line beside every listing without reading a docs page per host. fi1zes.com is the name chosen for the OpenFile marketplace on 2026-09-13, not yet registered; bittorrented.com stays the reference reader until then. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Khk1C6Ese6xjdHAWLVstca
This commit is contained in:
parent
e87f5f715f
commit
76b8d8dba6
2 changed files with 18 additions and 3 deletions
|
|
@ -31,6 +31,13 @@ A disk serves a JSON document at `/.well-known/opendisk.json` on its own origin.
|
|||
"operator": "https://seeder-a41e.example/.well-known/openprofile.md",
|
||||
"key": "ed25519:a41e7f0c2d9b8e5a6f3c1d4e7b0a9f8c5d2e1b4a7c0f3e6d9b2a5c8e1f4d7b0a",
|
||||
"hubs": ["https://bittorrented.com/api/openswarm", "https://d1sks.com/api/openswarm"],
|
||||
"developer": {
|
||||
"cli": {
|
||||
"name": "ip",
|
||||
"install": { "curl": "curl -fsSL https://d1sks.com/install.sh | sh" },
|
||||
"docs": "https://d1sks.com/docs/cli"
|
||||
}
|
||||
},
|
||||
"updated": "2026-09-13T06:00:00Z",
|
||||
"capacity": { "total_gib": 3726, "free_gib": 2210, "reserved_gib": 200 },
|
||||
"price": {
|
||||
|
|
@ -76,6 +83,7 @@ The rules, and every one degrades:
|
|||
|
||||
1. **`name`, `capacity.free_gib` and `price.per_gib_month` are the only required keys.** A descriptor with those alone is valid: it is a disk, it has room, it has a price. A reader lists what it was given and reports the rest as unstated rather than assumed.
|
||||
2. **`operator`** is the person or organisation answerable, as an [OpenProfile.md](/openprofile) URL. `web` is the disk's site, if it has one beyond the descriptor. A disk with no operator is listed as such, and a marketplace may decline to list it.
|
||||
2a. **`developer`** is the block [OpenServer](/docs/openserver) 0.2 defines, unchanged: the CLI a requester uses to rent this disk and a seeder uses to run it (`cli.name`, `cli.install` keyed by package manager with the command as the guide prints it, `cli.docs`, `cli.repo`), plus `api_docs` and `github` where they exist. A disk usually names the client its hub ships, so a marketplace can show one install line beside every disk it lists; `"cli": null` says there is none.
|
||||
3. **`key`** is the seeder's OpenSwarm identity, the key that signs `paid2seed` proofs and is registered as an `ippay` payee. **`hubs`** are the hubs it takes leases at. A requester posts its offer at one of them; a disk with no `hubs` is rented some other way, and `web` says how.
|
||||
4. **`updated`** is when anything in the file last changed. `capacity.free_gib` changes with every lease, so a disk that is busy updates often and a reader with `updated` unchanged since its last fetch may skip the rest.
|
||||
5. **`capacity`** is in GiB: `total_gib` the disk, `free_gib` what a new lease can have now, `reserved_gib` what the operator keeps back. `free_gib` is the number that matters and the only one required.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,14 @@ A publisher serves a JSON document at `/.well-known/openfile.json` on its own or
|
|||
"operator": "https://dartmoor.example/.well-known/openprofile.md",
|
||||
"key": "ed25519:5d292428e8a68946e5225136c8b10e8f33ab78a45e1663d0730996dd2b63d59e",
|
||||
"feed": "ed25519:5d292428e8a68946e5225136c8b10e8f33ab78a45e1663d0730996dd2b63d59e/default",
|
||||
"hubs": ["https://bittorrented.com/api/openswarm"]
|
||||
"hubs": ["https://bittorrented.com/api/openswarm"],
|
||||
"developer": {
|
||||
"cli": {
|
||||
"name": "ip",
|
||||
"install": { "curl": "curl -fsSL https://bittorrented.com/install.sh | sh" },
|
||||
"docs": "https://bittorrented.com/docs/cli"
|
||||
}
|
||||
}
|
||||
},
|
||||
"updated": "2026-09-13T06:00:00Z",
|
||||
"files": [
|
||||
|
|
@ -84,7 +91,7 @@ The rules, and every one degrades:
|
|||
|
||||
1. **`publisher.name`, `files[].id` and `files[].name` are the only required keys.** A descriptor with those alone is valid. A reader lists what it was given and reports the rest as unstated rather than assumed.
|
||||
2. **`files[].id` is the content hash of the plaintext**, `sha256:` and hex. For an `ipfile` swarm it is the manifest's `plainRoot`, so the id a reader gets here is the root the decrypted file verifies against. For a plain HTTP file it is the SHA-256 of the bytes. It is the dedupe key: two publishers serving the same bytes list the same id, and a directory that meets the same id twice has one file with two publishers, not two files.
|
||||
3. **`publisher`** is who put it up. `web` is the site, `operator` the person or organisation answerable as an [OpenProfile.md](/openprofile) URL, `key` the OpenSwarm publisher key that signed the manifests, `feed` the `ipdb` feed a swarm reader can follow instead of polling this file, `hubs` the `ippay` hubs whose passes the publisher accepts. A publisher with no swarm has none of the last three.
|
||||
3. **`publisher`** is who put it up. `web` is the site, `operator` the person or organisation answerable as an [OpenProfile.md](/openprofile) URL, `key` the OpenSwarm publisher key that signed the manifests, `feed` the `ipdb` feed a swarm reader can follow instead of polling this file, `hubs` the `ippay` hubs whose passes the publisher accepts, and `developer` the block [OpenServer](/docs/openserver) 0.2 defines, unchanged, naming the CLI a reader fetches with (`cli.name`, `cli.install` as the guide prints it, `cli.docs`, `cli.repo`). A publisher with no swarm has none of `key`, `feed` and `hubs`.
|
||||
4. **`updated`** on the descriptor is when anything in it last changed; **`updated`** on a file is when that file last changed and wins for that file. A reader with the descriptor's `updated` unchanged since its last fetch may skip the rest.
|
||||
5. **`descriptor`** is the URL of the same file object served on its own, next to the file: `<name>.openfile.json`, or wherever the publisher puts it. A reader handed a single file's descriptor by that route has everything below without the listing.
|
||||
6. **`size`, `contentType`, `pieces`** describe the bytes. `size` is the plaintext length in bytes. `pieces.length` is the piece length, a power of two; `pieces.count` follows from it; `pieces.layer` is where to fetch the plaintext piece layer, so a reader can verify each piece as it arrives rather than the whole at the end.
|
||||
|
|
@ -167,7 +174,7 @@ The first directory reading OpenFile is `bittorrented.com`, which today lists ba
|
|||
|
||||
**No DRM.** A pass holder gets the key and the bytes, as `ipfile` says. A publisher that wants to control a device after delivery is reading the wrong specification.
|
||||
|
||||
**No product domain yet.** A directory and a marketplace for OpenFile is planned under a name not yet chosen. `bittorrented.com` is the reference reader until then.
|
||||
**Product domain.** The directory and marketplace for OpenFile is planned as fi1zes.com, the name chosen on 2026-09-13 and not yet registered. `bittorrented.com` is the reference reader until it exists.
|
||||
|
||||
## Serving one
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue