Skynet is a content and application hosting platform bringing decentralized storage to users, creators and app developers.
Skynet is build on Sia, the leading decentralized data storage platform.
This repo contains the code for skyd
which is required for running a minimum
Skynet Portal. For more information on what a portal is and how it interacts
with the rest of the Skynet ecosytem, head over to the Skynet Support
Docs for the most up
to date documentation.
Skyd uses a custom License. The Skynet License is a source code license that allows you to use, modify and distribute the software, but you must preserve the payment mechanism in the software.
For the purposes of complying with our code license, you can use the following Siacoin address:
fb6c9320bc7e01fbb9cd8d8c3caaa371386928793c736837832e634aaaa484650a3177d6714a
The majority of Skynet users don't need to interact with skyd
. If you are
looking to get started using Skynet, we recommended heading over to our
Public Web Portal and sign up for an account
here. For developers, check out our information
on our Developers page.
This repo and README are for those looking to contribute to skyd
development,
or are interested in running their own Skynet Portal.
skyd
releases comes with 2 binaries, skyd
and skyc
. skyd
is a
background service, or "daemon," that runs the skyd
protocol and exposes an
HTTP API on port 9980. skyc
is a command-line client that can be used to
interact with skyd
in a user-friendly way. For interested developers, the
skyd
API is documented
here.
NOTE: this API is for building directly on skyd
. Most Skynet developers
will only need to interact with the Skynet SDK.
skyd
and skyc
are run via command prompt. On Windows, you can just double-
click skyd
.exe if you don't need to specify any command-line arguments.
Otherwise, navigate to its containing folder and click File->Open command
prompt. Then, start the skyd
service by entering skyd
and pressing Enter.
The command prompt may appear to freeze; this means skyd
is waiting for
requests. Windows users may see a warning from the Windows Firewall; be sure
to check both boxes ("Private networks" and "Public networks") and click
"Allow access." You can now run skyc
(in a separate command prompt) or Sia-
UI to interact with skyd
. From here, you can send money, upload and download
files, and advertise yourself as a host.
To build from source, Go 1.13 or above must be
installed on the system. Clone the repo and
run make
:
git clone https://gitlab.com/SkynetLabs/skyd
cd skyd && make dependencies && make
This will install the skyd
and skyc
binaries in your $GOPATH/bin
folder.
(By default, this is $HOME/go/bin
.) You can find more information about
$GOPATH
here.
You can also run make test
and make test-long
to run the short and full test
suites, respectively. Finally, make cover
will generate code coverage reports
for each package; they are stored in the cover
folder and can be viewed in
your browser.
Official binaries can be found under Releases
Additionally, an official Docker image can be found here.