架构设计:
服务用户(和用户行为有关,用户可感知)
- 捕获用户输入、展示处理结果
- 自己相当于 View,背后有对应的 Controller/Model
服务自己(和用户行为无关,启动软件就自动运行)
- 自己就是一个服务(goroutine)
- 启动时偷偷做事,如同步区块数据、保存和用户相关的数据(和链有关)
钱包 CMD
dero-wallet-cli
DERO : A secure, private blockchain with smart-contracts
Usage:
dero-wallet-cli [options]
dero-wallet-cli -h | --help
dero-wallet-cli --version
Options:
-h --help Show this screen.
--version Show version.
--wallet-file=<file> Use this file to restore or create new wallet
--password=<password> Use this password to unlock the wallet
--offline Run the wallet in completely offline mode
--offline_datafile=<file> Use the data in offline mode default ("getoutputs.bin") in current dir
--prompt Disable menu and display prompt
--testnet Run in testnet mode.
--debug Debug mode enabled, print log messages
--unlocked Keep wallet unlocked for cli commands (Does not confirm password before commands)
--generate-new-wallet Generate new wallet
--restore-deterministic-wallet Restore wallet from previously saved recovery seed
--electrum-seed=<recovery-seed> Seed to use while restoring wallet
--socks-proxy=<socks_ip:port> Use a proxy to connect to Daemon.
--daemon-address=<host:port> Use daemon instance at <host>:<port>
--rpc-server Run rpc server, so wallet is accessible using api
--rpc-bind=<127.0.0.1:20209> Wallet binds on this ip address and port
--rpc-login=<username:password> RPC server will grant access based on these credentials