Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

pegnet/pegnet

Repository files navigation


Build StatusDiscordCoverage StatusLicense

A Network of Pegged Tokens

This is the main repository for the PegNet application.

Pegged tokens reflect real market assets such as currencies, precious metals, commodities, cryptocurrencies etc. The conversion rates on PegNet are determined by a decentralized set of miners who submit values based on current market data. These values are recorded in the Factom blockchain and then graded based upon accuracy and mining hashpower.

The draft proposal paper is availablehere.

For any questions, troubleshooting or further information head todiscord.

Mining

Requirements

Setup

Create a.pegnet folder inside your home directory. Copy theconfig/defaultconfig.inifile there.

On Windows this is your%USERPROFILE% folder

Linux example:

mkdir~/.pegnetwget https://raw.githubusercontent.com/pegnet/pegnet/master/config/defaultconfig.ini -P~/.pegnet/
  • Sign up for an API Key fromhttps://currencylayer.com, replace APILayerKey in the config with your own

  • Replace either ECAddress or FCTAddress with your own

  • Modify the IdentityChain name to one of your choosing.

  • Have a factomd node running on mainnet.

  • Have factom-walletd open

  • Start Pegnet

On first startup there will be a delay while the hash bytemap is generated. Mining will only begin at the start of each ten minute block.

Contributing

  • JoinDiscord and chat about it with lovely people!

  • Run a testnet node

  • Create a github issue because they always exist.

  • Fork the repo and submit your pull requests, fix things.

Development

Docker guide can be foundhere for an automated solution.

Manual Setup

Install thefactom binaries

The Factom developer sandbox setup overview ishere, which covers the first parts, otherwise use below.

# In first terminal# Change blocktime to whatever suits youfactomd -blktime=120 -network=LOCAL# Second Terminalfactom-walletd# Third Terminalfa='factom-cli importaddress Fs3E9gV6DXsYzf7Fqx1fVBQPQXV695eP3k5XbmHEZVRLkMdD9qCK'ec='factom-cli newecaddress'factom-cli listaddresses# Verify addressesfactom-cli buyec$fa$ec 100000factom-cli balance$ec# Verify Balance# Fork Repo on github, clone your forkgit clone https://github.com/<USER>/pegnet# Add main pegnet repo as a remotecd pegnetgit remote add upstream https://github.com/pegnet/pegnet# Sync with main development branchgit pull upstream develop# Initialize the pegnet chaincd initializationgo build./initialization# You should be ready to roll from here

[8]ページ先頭

©2009-2025 Movatter.jp