-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement(ddn-crypto): change js-nacl to tweetnacl.js etc
BREAKING CHANGE: Improved encryption algorithm, unified encryption management and improved comprehensive performance
- Loading branch information
Showing
17 changed files
with
305 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,64 @@ | ||
# DDN 命令行工具 | ||
|
||
从 DDN v3.0.0 以后,我们的命令行工具`ddn-cli`名称正式更改为`ddn`,也就是说,通过命令行操作的命令与实际运行的程序将保持一次,都是`ddn`. | ||
从 DDN v3.0.0 以后,我们的命令行工具`ddn-cli`名称正式更改为`ddn`,也就是说,通过命令行操作的命令与实际运行的程序将保持一次,都是`ddn`. | ||
|
||
``` | ||
imflydeMacBook:ddn imfly$ ddn | ||
Usage: [options] [command] | ||
Options: | ||
-V, --version output the version number | ||
-H, --host <host> Specify the hostname or ip of the node, default: 127.0.0.1 (default: "127.0.0.1") | ||
-P, --port <port> Specify the port of the node, default: 8001 (default: 8001) | ||
-M, --main Specify the mainnet, default: false | ||
-h, --help output usage information | ||
Commands: | ||
getHeight get block height | ||
getBlockstatus get block status | ||
openAccount [secret] open your account and get the infomation by secret | ||
openAccountByPublickey [publickey] open your account and get the infomation by publickey | ||
getBalance [address] get balance by address | ||
getAccount [address] get account by address | ||
getVotedDelegates [options] [address] get delegates voted by address | ||
getDelegatesCount get delegates count | ||
getDelegates [options] get delegates | ||
getVoters [publicKey] get voters of a delegate by public key | ||
getDelegateByPublickey [publicKey] get delegate by public key | ||
getDelegateByUsername [username] get delegate by username | ||
getBlocks [options] get blocks | ||
getBlockById [id] get block by id | ||
getBlockByHeight [height] get block by height | ||
getPeers [options] get peers | ||
getUnconfirmedTransactions [options] get unconfirmed transactions | ||
getTransactions [options] get transactions | ||
getTransaction [id] get transactions | ||
sendToken [options] send token to some address | ||
sendAsset [options] send asset to some address | ||
registerDelegate [options] register delegate | ||
listDiffVotes [options] list the votes each other | ||
upVote [options] vote for delegates | ||
downVote [options] cancel vote for delegates | ||
setSecondsecret [options] set second secret | ||
registerDapp [options] register a dapp | ||
deposit [options] deposit assets to an app | ||
dappTransaction [options] create a dapp transaction | ||
lock [options] lock account transfer | ||
getFullBlockById [id] get full block by block id | ||
getFullBlockByHeight [height] get full block by block height | ||
getTransactionBytes [options] get transaction bytes | ||
getTransactionId [options] get transaction id | ||
getBlockBytes [options] get block bytes | ||
getBlockPayloadHash [options] get block bytes | ||
getBlockId [options] get block id | ||
verifyBytes [options] verify bytes/signature/publickey | ||
generate|g <asset> <name> generate new blockchain | ||
contract [options] contract operations | ||
crypto [options] crypto operations | ||
dapps [options] manage your dapps | ||
createGenesis [options] create genesis block | ||
peerStat analyze block height of all peers | ||
delegateStat analyze delegates status | ||
ipStat analyze peer ip info | ||
createUsers [options] create some accounts | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
module.exports = require('./crypto'); | ||
import crypto from './crypto'; | ||
|
||
export default crypto; |
Oops, something went wrong.