CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP),is short for CYberFileSystem. https://www.cyf
CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP),is short for CYberFileSystem. https://www.cyf
CYFS:Next Generation Protocol Family to Build Web3
CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP). It has a subversive architectural design that everyone brings their own OOD (Owner Online Device) to form a truly decentralized network.
We define Web3 as follows:
After 6 years of research and development, we have achieved the above goals on the CYFS testnet. For the detailed design of the theory and practice of CYFS, please refer to the relevant documents. Open source of CYFS is an important milestone for CYFS, marking that its design has been basically stable and has entered an open community-driven R&D stage. We look forward to having more people join us. We need your passion and strength. Let’s build Web3 that belongs to ourselves together.
This is the repository of the CYFS protocol stack on Github. Although we have built a decentralized GitHub (CodeDAO) on the CYFS testnet to realize the decentralized bootstrapping of CYFS. But before the CYFS mainnet online, we still decided to stay a little longer in WEB2.0 and use this repository as the main community-driven R&D base. After the CYFS mainnet goes online, the entire Repo will move to CodeDAO.
This repository only contains the implementation of the CYFS core system. It does not include the important basic software of the CYFS ecosystem: CyberChat and CYFS Browser, nor does it include SDK implementations for developers of different languages. The following is a list of other important open source projects in the CYFS ecosystem (continuously updated)
cyfs:// protocol (https://github.com/buckyos/cyfs-browser)The above is the overall architecture diagram of CYFS, which can help to establish a macro understanding of the design of CYFS. The core design of CYFS can be decomposed into the following parts
cyfs://o/$ownerid/$objid (Object Link).game-based consensus theory of dispute before going on the chain, and realize the decentralized high reliability and high availability of cyfs://What key problems are these designs designed to solve? (We believe that "finding the right problem is half done~") You can read "CYFS Architecture" and "CYFS Whitepaper" (coming soon), the amount of content comparison Great, you can understand it with practice~
We strongly recommend that you read the "Hello CYFS" series of articles in full to get a complete initial experience of CYFS (the whole process can be completed within 1 hour):
You can also use the following fast progress to have a first experience of "doing nothing without understand and save time"~
"Decentralized message board development"
The following will build your own Web3 environment by compiling the CYFS source code, and complete the basic experience of Web3 in this environment:
cyfs get command to download the files in the folder you just published.Note that this environment is normally not isolated, but can be added to the CYFS network (we have planned 3 networks: nightly, beta, relase, currently only nightly is available), so the following tutorial does not include compiling MetaChain with source code +SN part. If you plan to build a complete system in an independent environment and need to compile and deploy MetaChain super nodes, please read the document "MetaChain Construction" (Coming soon).
Prepare an idle Linux host, preferably a VPS, with more than 2G of memory. Preparation:
Run the following command to compile the OOD System.
cd ${cyfs_sources_dir}/src
npm i
node ../scripts/build-standalone.js
During the compilation process of the script, the ${cyfs_root} folder needs to be created. If the current system or current user does not have permission to create this folder, you need to manually create the ${cyfs_root} folder in advance, and assign read and write permissions to the current user. (In the official environment, all components and data of the OOD System will be installed to ${cyfs_root})
${cyfs_root} path:
c:\cyfs~/Library/cyfs/cyfsCompile successfully generates ood-installer
Before installation, you need to prepare the depends:
Find the newly compiled ood-installer in the src directory and execute
./ood-installer --target solo
After a minintes , the installation is complete.
In order to experience the process, the cli tool is used here to complete the D.I.D creation process. **D.I.D created based on the cli tool can only be used for testing purposes! **
npm i -g cyfs-tool-nightly to install the nightly version of the cyfs-tool toolUse the command
cyfs desc -s <save_path>to generate a matching identity file and save it in the save_path directory. If save_path is not specified, it defaults to ~/.cyfs_profile
After the identity is generated, copy the two files
<save_path>/ood.descand<save_path>/ood.secto${cyfs_root}/etc/descon the OOD machine and rename it todevice. descanddevice.sec
After the identity is generated, copy the two files
<save_path>/runtime.descand<save_path>/runtime.secto${cyfs_runtime_root}/etc/descon the CYFS browser machine and rename them todevice.descanddevice.sec
${cyfs_runtime_root} specific path:
%appdata%/cyfs~/Library/Application Support/cyfsFirst prepare the www directory of your website, let's first experience publishing static websites to Web3, and follow-up documents for the construction of dynamic websites will be introduced.
use command
cyfs upload <dir_path> -e ood -t ood
Add the file pointed to by the local <dir_path> to the OOD.
The command execution is complete, the local www directory has been uploaded to OOD and the unique URL to the Web3.0 website has been generated (the end of the command execution).
The link is cyfs O-Link, which looks like this cyfs://o/$ownerid/$objid, where $objid is the ContentId of the directory.
Use the command on any machine with cyfs-tool installed
cyfs get cyfs://o/$ownerid/$objid/index.html
You can download the just-released official website.
Any machine with a cyfs browser installed can use the cyfs browser to open cyfs://o/$ownerid/$objid/index.html and browse the website just released.
For the download of cyfs browser, see here
Through the above process, you have a basic understanding of the design and use of CYFS. Although the design of CYFS is basically stable, we still have a lot of code to write. We are very eager for your help, but certainly not too much energy to write documentation (details are in the source code~). Here we do a minimalist code introduction, hoping to help you understand the implementation of CYFS faster.
According to the architecture, we know that the core of cyfs:// is the construction and acquisition of Object Linke, and the premise of acquisition is to upload data to OOD at least. The process is as follows:
Then the process of using cyfs get to obtain is as follows:
No open issues yet, or sync has not completed.