Filecoin 백서

Filecoin

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 52쪽 중 7쪽

guide](#style) lets you know the rules you should follow, this guide will help you to properly structure your writing and choose the correct tone for your audience. #### Walkthroughs The purpose of a walkthrough is to tell the user *how* to do something. They do not need to convince the reader of something or explain a concept. Walkthroughs are a list of steps the reader must follow to achieve a process or function. The vast majority of documentation within the Filecoin documentation project falls under the *Walkthrough* category. Walkthroughs are generally quite short, have a neutral tone, and teach the reader how to achieve a particular process or function. They present the reader with concrete steps on where to go, what to type, and things they should click on. There is little to no *conceptual* information within walkthroughs. **Goals** Use the following goals when writing walkthroughs: <table><thead><tr><th width="150.33333333333331">Goal</th><th width="138">Keyword</th><th>Explanation</th></tr></thead><tbody><tr><td><strong>Audience</strong></td><td><em>General</em></td><td>Easy for anyone to read with minimal effort.</td></tr><tr><td><strong>Formality</strong></td><td><em>Neutral</em></td><td>Slang is restricted, but standard casual expressions are allowed.</td></tr><tr><td><strong>Domain</strong></td><td><em>Technical</em></td><td>Acronyms and tech-specific language is used and expected.</td></tr><tr><td><strong>Tone</strong></td><td><em>Neutral</em></td><td>Writing contains little to no emotion.</td></tr><tr><td><strong>Intent</strong></td><td><em>Instruct</em></td><td>Tell the reader <em>how</em> to do something.</td></tr></tbody></table> **Function or process** The end goal of a walkthrough is for the reader to achieve a very particular function. *Installing the Filecoin Desktop application* is an example. Following this walkthrough isn't going to teach the reader much about working with the decentralized web or what Filecoin is. Still, by the end, they'll have the Filecoin Desktop application installed on their computer. **Short length** Since walkthroughs cover one particular function or process, they tend to be quite short. The estimated reading time of a walkthrough is somewhere between 2 and 10 minutes. Most of the time, the most critical content in a walkthrough is presented in a numbered list. Images and GIFs can help the reader understand what they should be doing. If a walkthrough is converted into a video, that video should be no longer than 5 minutes. **Walkthrough structure** Walkthroughs are split into three major sections: 1. What we're about to do. 2. The steps we need to do. 3. Summary of what we just did, and potential next steps. #### Conceptual articles Articles are written with the intent to inform and explain something. These articles don't contain any steps or actions that the reader has to perform *right now*. These articles are vastly different in tone when compared to walkthroughs. Some topics and concepts can be challenging to understand, so creative writing and interesting diagrams are highly sought-after for these articles. Whatever writers can do to make a subject more understandable, the better. **Article goals** Use the following goals when writing conceptual articles: <table><thead><tr><th width="130.33333333333331">Goal</th><th width="167">Keyword</th><th>Explanation</th></tr></thead><tbody><tr><td><strong>Audience</strong></td><td><em>Knowledgeable</em></td><td>Requires a certain amount of focus to understand.</td></tr><tr><td><strong>Formality</strong></td><td><em>Neutral</em></td><td>Slang is restricted, but standard casual expressions are allowed.</td></tr><tr><td><strong>Domain</strong></td><td><em>Any</em></td><td>Usually <em>technical</em>, but depends on the article.</td></tr><tr><td><strong>Tone</strong></td><td><em>Confident and friendly</em></td><td>The reader must feel confident that the writer knows what they're talking about.</td></tr><tr><td><strong>Intent</strong></td><td><em>Describe</em></td><td>Tell the reader <em>why</em> something does the thing that it does, or why it exists.</td></tr></tbody></table> **Article structure** Articles are separated into five major sections: 1. Introduction to the thing we're about to explain. 2. What the thing is. 3. Why it's essential. 4. What other topics it relates to. 5. Summary review of what we just read. #### Tutorials When writing a tutorial, you're teaching a reader how to achieve a complex end-goal. Tutorials are a mix of walkthroughs and conceptual articles. Most tutorials will span several pages, and contain multiple walkthroughs within them. Take the hypothetical tutorial *Get up and running with Filecoin*, for example. This tutorial will likely have the following pages: 1. A brief introduction to what Filecoin is. 2. Choose and install a command line client. 3. Understanding storage deals. 4. Import and store a file. Pages `1` and `3` are conceptual articles, describing particular design patterns and ideas to the reader. All the other pages are walkthroughs instructing the user how to perform one specific action. When designing a tutorial, keep in mind the walkthroughs and articles that already exist, and note down any additional content items that would need to be completed before creating the tutorial. ### Grammar and formatting Here are some language-specific rules that the Filecoin documentation follows. If you use a writing service like [Grammarly](https://www.grammarly.com/), most of these rules are turned on by default. #### American English While Filecoin is a global project, the fact is that American English is the most commonly used *style* of English used today. With that in mind, when writing content for the Filecoin project, use American English spelling. The basic rules for converting other styles of English into American English are: 1. Swap the `s` for a `z` in words like *categorize* and *pluralize*. 2. Remove the `u` from words like *color* and *honor*. 3. Swap `tre` for `ter` in words like *center*. #### The Oxford comma In a list of three or more items, follow each item except the last with a comma `,`: | Use | Don't use | | ----------------------------- | ---------------------------- | | One, two, three, and four. | One, two, three and four. | | Henry, Elizabeth, and George. | Henry, Elizabeth and George. | #### References to Filecoin As a proper noun, the name "Filecoin" (capitalized) should be used only to refer to the overarching project, to the protocol, or to the project's canonical network: > Filecoin \[the project] has attracted contributors from around the globe! Filecoin \[the protocol] rewards contributions of data storage instead of computation! Filecoin \[the network] is currently storing 50 PiB of data! The name can also be used as an adjective: > The Filecoin ecosystem is thriving! I love contributing to Filecoin documentation! When referring to the token used as Filecoin's currency, the name `FIL`, is preferred. It is alternatively denoted by the Unicode symbol for an integral with a double stroke ⨎: * Unit prefix: **100 FIL**. * Symbol prefix: **⨎ 100**. The smallest and most common denomination of FIL is the `attoFIL` (10^-18 FIL). > The collateral for this storage deal is 5 FIL. I generated ⨎100 as a storage provider last month! Examples of discouraged usage: > Filecoin rewards storage providers with Filecoin. There are many ways to participate in the Filecoin community. My wallet has thirty filecoins. Consistency in the usage of these terms helps keep these various concepts distinct. #### References to Lotus Lotus is the main implementation of Filecoin. As such, it is frequently referenced in the Filecoin documentation. When referring to the Lotus implementation, use a capital *L*. A lowercase *l* should only be used when referring to the Lotus executable commands such as `lotus daemon`. Lotus executable commands should always be within code blocks: ````markdown 1. Start the Lotus daemon: ```shell lotus daemon ``` 2. After your Lotus daemon has been running for a few minutes, use `lotus` to check the number of other peers that it is connected to in the Filecoin network: ```shell lotus net peers ``` ```` #### Acronyms If you have to use an acronym, spell the full phrase first and include the acronym in parentheses `()` the first time it is used in each document. Exception: This generally isn't necessary for commonly-encountered acronyms like *IPFS*, unless writing for a stand-alone article that may not be presented alongside project documentation. > Virtual Machine (VM), Decentralized Web (DWeb). ### Formatting How the Markdown syntax looks, and code formatting rules to follow. #### Syntax The Filecoin Docs project follows the *GitHub Flavoured Markdown* syntax for markdown. This way, all articles display properly within GitHub itself. #### Rules We use the rules set out in the [VSCode Markdownlint](https://github.com/DavidAnson/vscode-markdownlint) extension. You can import these rules into any text editor like Vim or Sublime. All rules are listed [within the Markdownlint repository](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md). We highly recommend installing [VSCode](https://code.visualstudio.com/) with the [Markdownlint](https://github.com/DavidAnson/vscode-markdownlint) extension to help with your writing. The extension shows warnings within your markdown whenever your copy doesn't conform to a rule. ### Style The following rules explain how we organize and structure our writing. The rules outlined here are in addition to the [rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md) found within the [Markdownlinter extension](https://github.com/DavidAnson/vscode-markdownlint). #### Text The following rules apply to editing and styling text. **Titles** 1. All titles follow sentence structure. Only *names* and *places* are capitalized, along with the first letter of the title. All other letters are lower-case: <pre class="language-markdown"><code class="lang-markdown"><strong>## This is a title </strong> ### Only capitalize names and places ### The capital city of France is Paris </code></pre> 1. Every article starts with a *front-matter* title and description: ```markdown --- title: Example article description: This is a brief description that shows up in link teasers in services like Twitter and Slack. --- ## This is a subtitle Example body text. ``` In the above example `title:` serves as a `<h1>` or `#` tag. There is only ever one title of this level in each article. 1. Titles do not contain punctuation. If you have a question within your title, rephrase it as a statement: ```markdown <!-- This title is wrong. --> ## What is Filecoin? <!-- This title is better. --> ## Filecoin explained ``` **Bold text** Double asterisks `**` are used to define **boldface** text. Use bold text when the reader must interact with something displayed as text: buttons, hyperlinks, images with text in them, window names, and icons. ```markdown In the **Login** window, enter your email into the **Username** field and click **Sign in**. ``` **Italics** Underscores `_` are used to define *italic* text. Style the names of things in italics, except input fields or buttons: ```markdown Here are some American things: - The _Spirit of St Louis_. - The _White House_. - The United States _Declaration of Independence_. Try entering them into the **American** field and clicking **Accept**. ``` Quotes or sections of quoted text are styled in italics and surrounded by double quotes `"`: ```markdown In the wise words of Winnie the Pooh _"People say nothing is impossible, but I do nothing every day."_ ``` **Code blocks** Tag code blocks with the syntax of the core they are presenting: ````markdown ```javascript console.log(error); ``` ```` Output from command-line actions can be displayed by adding another codeblock directly after the input codeblock. Here's an example telling the use to run `go version` and then the output of that command in a separate codeblock immediately after the first: ````markdown ```shell go version ``` ```plaintext go version go1.19.7 darwin/arm64 ``` ```` Command-line examples can be truncated with three periods `...` to remove extraneous information: ````markdown ```shell lotus-miner info ``` ```shell Miner: t0103 Sector Size: 16.0 MiB ... Sectors: map[Committing:0 Proving:0 Total:0] ``` ```` **Inline code tags** Surround directories, file names, and version numbers between inline code tags `` ` ``. ```markdown Version `1.2.0` of the program is stored in `~/code/examples`. Open `exporter.exe` to run the program. ``` **List items** All list items follow sentence structure. Only *names* and *places* are capitalized, along with the first letter of the list item. All other letters are lowercase: 1. Never leave Nottingham without a sandwich. 2. Brian May played guitar for Queen. 3. Oranges. List items end with a period `.`, or a colon `:` if the list item has a sub-list: 1. Charles Dickens novels: 1. Oliver Twist. 2. Nicholas Nickelby. 3. David Copperfield. 2. J.R.R Tolkien non-fiction books: 1. The Hobbit. 2. Silmarillion. 3. Letters from Father Christmas. **Unordered lists** Use the asterisk character `*` for un-numbered list items: ```markdown * An apple. * Three oranges. * As many lemons as you can carry. * Half a lime. ``` **Special characters** Whenever possible, spell out the name of the special character, followed by an example of the character itself within a code block. ```markdown Use the dollar sign `$` to enter debug-mode. ``` **Keyboard shortcuts** When instructing the reader to use a keyboard shortcut, surround individual keys in code tags: ```shell Press `ctrl` + `c` to copy the highlighted text. ``` The plus symbol `+` stays outside of the code tags. #### Images The following rules and guidelines define how to use and store images. **Alt text** All images contain alt text so that screen-reading programs can describe the image to users with limited sight: ```markdown ![Screenshot of an image being uploaded through the Filecoin command line.](filecoin-image-upload-screen.png) ``` [Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/getting-started/community/ways-to-contribute) # Filecoin for Agents How AI agents can use Filecoin Cloud (FC) for storage that is persistent, portable, open, and verifiable, without a human in the loop. **AI agents can use Filecoin Cloud (FC) to give their context, artifacts, and records a home that survives the session, the tool, and the vendor: storage that stays portable across agents and frameworks, open with no single point of lock-in, and verifiable end to end.** This page is a starting point for building agents that use FC. It links out to the CLIs, SDKs, and console you'll actually use, rather than repeating their full documentation here. ## Overview Agents forget. When a session ends, a tool gets swapped, or a vendor shuts down, whatever an agent learned or produced usually disappears with it. Every skill built on Filecoin Cloud (FC), starting with `publish` below, aims to fix that around four ideas: * **Persistent.** Your agent's context, artifacts, and records survive the session, the tool, and the vendor. Nothing it learns or makes disappears when the window closes. * **Portable.** Move useful state across agents, models, frameworks, and teammates, including across org boundaries. * **Open.** Neutral infrastructure with exportable ownership and no lock-in of valuable agent state. * **Verifiable.** Underneath it all, the retrieved bytes are the written bytes. This isn't the pitch, it's the reason the pitch is credible, and it surfaces where it earns its keep: enterprise audit conversations. ## Filecoin for agentic use cases A few patterns come up often when agents use FC: * **Durable agent memory and outputs.** Agents that need to persist state, logs, or generated artifacts (files, datasets, reports) across restarts or across a fleet can pin them to Filecoin and keep a verifiable, addressable record of what they produced and when. * **Verifiable identity and provenance.** Agents that register a verifiable identity (for example, under [ERC-8004](https://eips.ethereum.org/EIPS/eip-8004)) can back that identity with metadata stored on Filecoin, so other agents or services can verify both who an agent is and that its declared capabilities/data haven't disappeared. See [Filecoin Pin for ERC-8004 Agents](/build-on-filecoin/cookbook/filecoin-pin/erc-8004-agent-registration) for a full walkthrough. * **IPFS-compatible by default.** If an agent (or the framework it's built on) already speaks IPFS, adding Filecoin persistence doesn't require new tooling. Content stays addressable by the same Content Identifier (CID). * **Paying as it goes.** Storage and other services can be funded once and drawn against automatically, instead of a human provisioning and paying upfront for each use. ## Quickstart: publish an artifact `publish` is the first in a growing set of packaged skills for the use cases above; more are on the way for agent memory, identity, and beyond. The fastest way to see it working end to end is to have an agent publish a file using the `publish` skill, the way an agent would share an artifact it just produced. The skill drives the [Filecoin Pin CLI](https://github.com/filecoin-project/filecoin-pin) underneath, so everything here works whether an agent invokes the skill or you run the CLI directly. Before you start, make sure you have: * **An Ethereum-style wallet on Filecoin.** See [Wallets](/networks-and-tools/assets/wallets). You'll use it to approve access from a browser, not to hand a key to the agent. * **FIL in that wallet,** to cover transaction fees. * **USDFC in that wallet,** to pay for storage. USDFC is Filecoin Cloud's storage-payment stablecoin. 5 USDFC is enough to start. * **Node.js 24 or later.** 1. **Install the skill and the CLI it drives:** ```sh npx skills add filecoin-project/filecoin-skills --skill publish npm install -g filecoin-pin ``` 2. **Log in once.** Run `filecoin-pin login` and approve a scoped session key in the Filecoin Cloud console from your wallet. No private key ever touches the agent, and the key can be revoked from the console at any time. ```sh filecoin-pin login ``` 3. **Set up payments in the console.** Authorize the Warm Storage Service to spend USDFC and deposit funds into Filecoin Pay, both in the console's Add Service flow, in a single wallet transaction. A session key can't move money, so this step is always a human's. 4. **Ask the agent to publish something.** Say "publish this," "share this file," or "pin this." The agent hands back a link like `https://inbrowser.link/ipfs/<cid>`, first the moment the CID is known, then confirmed once verification passes. Prefer to drive the CLI directly instead of through the skill? The same `filecoin-pin add`, `filecoin-pin payments setup`, and `filecoin-pin data-set` commands work standalone, including a direct private-key mode. See [Filecoin Pin: Getting Started](/build-on-filecoin/cookbook/filecoin-pin/getting-started) for that walkthrough. ## Common questions **How does an agent verify its data is still stored, instead of just trusting the upload succeeded?** Storage providers submit proof, on a recurring schedule, that they still hold the data (Proof of Data Possession, or PDP). An agent can query this directly at any time (for example with `filecoin-pin data-set show <DATASET_ID>`) rather than relying on a one-time confirmation. **Can an AI agent use Filecoin without a human approving each transaction?** Yes. Once an agent's wallet is funded and payment authorization is set up (a one-time step, typically done by a human operator), the a
프로젝트로 돌아가기