Skip to content

cc14514/Spectrum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

We will try to add some interesting features to this chain, which will involve significant changes. I am one of the authors of the Spectrum chain, so it is possible that it will be merged into the Spectrum chain in the future.

For now, we will continue using the name SMC, but we will change the chain ID. The main chain's SMT tokens cannot be used on this chain. We will create our own tokens for testing new features. If you are interested in participating, please contact me directly via email at [email protected].

Spectrum

光谱logo2(1).png

Spectrum is an Ethereum-compatible project. It uses a new consensus and new block reward for SmartMesh ecosystem devices and IOT. And you can view the transactions on the BlockChain Browser Address.

Since the list of signers is 17, it is recommended that the confirmation number of general transfer transaction block be set to 17 (one round), and that of exchange block be set to 34 (two rounds).

List of Chain ID's:

Chain(s) CHAIN_ID
mainnet 111
testnet 222
devnet 333

Warning

We suggest that the GasPrice should not be less than 18Gwei, otherwise the transaction may not be packaged into the block.

Build the source

Building Spectrum requires both a Go (version 1.15 or later) and a C compiler. You can install them using your favourite package manager. And you can view the detail installation and running steps on this page.

Run node

$ ./build/bin/smc console

Create new account

Users can create new account:

> personal.newAccount()

Get your own miner id

Every node has it's own miner id, you can run getMiner() function to get that id:

> tribe.getMiner() 

Bind your own miner id to wallet address

Users can bind their miner ID to a wallet address:

> tribe.bind("account","passwd") 

Or Users can only generate binding signatures at the terminal:

> tribe.bindSign("account") 

Deposit smt to POC

Users can become miner by deposit smt:

> tribe.pocDeposit("account","passwd") 

Start mining

Users can start mining or resume it:

> tribe.pocStart("account","passwd") 

Stop mining

Users can stop mining:

> tribe.pocStop("account","passwd") 

Withdraw smt

Users can withdraw smt:

> tribe.pocWithdraw("account","passwd")   

More functions

Users can input tribe to view:

> tribe

Security-related

Encrypt your nodekey

 $ ./build/bin/smc security --passwd

Decrypt your nodekey

 $ ./build/bin/smc security --unlock

About

SmartMesh Chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 82.9%
  • C 7.9%
  • JavaScript 5.3%
  • Solidity 1.5%
  • Assembly 0.6%
  • Java 0.4%
  • Other 1.4%