blockchain's Introduction
blockchain's People
blockchain's Issues
regtest mode
bitcoind -regtest -txindex -daemon 启动regtest mode
txindex 交易索引
deamon 后台运行
- -regtest generate
num
挖出num
个block - -regtest getaccountaddress
"address"
钱包默认地址 - -regtest getbalance 查看挖矿奖励(默认账户)
- -regtest getnewaddress 分配一个新的地址
- -regtest sendtoaddress
address
num
往address
转num
个btc - -regtest getrawtransaction
txid
true
查看交易的详细信息 - -regtest listreceivedbyaddress 查看收到的BTC
Original Bitcoin client/API calls list
bitcoin.conf 配置
网络
- testnet=0
- regtest=0
- proxy = IP:PORT
- addnode=IP/PORT
- connect=IP:PORT
- noirc=0 不使用因特网中继聊天
- maxconnections=num 最大连接数。进站+出站
- server=1 接受JSON-RPC命令
安全
- rpcuser = name
- rpcpassword = pwd
- rpctimeout = num
- rpcallowip = IP 允许连接的IP
- rpcport = port 监听端口
- rpcconnect = IP 您可以通过如下设置使用 Bitcoin 或 bitcoind 来发送命令到一个在其它主机远程运行的 Bitcoin/bitcoind 客户端
- rpcssl = num 使用安全套接层(也称为 TLS 或 HTTPS)来连接到 Bitcoin -server 或 bitcoind
- gen = 1 挖矿
- keypool = num 预先生成num对公司钥
- paytxfee 交易费
- allowreceivebyip=1 允许直接连接,实现“通过 IP 地址支付”功能
bitcoin-cli create -> sig -> send
跨链技术
跨链技术
- 公证人机制 (Notary schemes)
- 侧链/中继 (Sidechains/relays)
- 哈希锁定 (Hash-locking)
- 分布式私钥控制(Distributed private key control)
- 公证人机制+侧链混合技术(Notary schemes+Sidechains Mixing technology)
跨链技术 | 公证人机制 | 侧链/中继 | 哈希锁定 | 分布式密钥技术 | 公证人机制+侧链混合技术 |
---|---|---|---|---|---|
跨链交互 | Y | Y | Y | Y | Y |
跨链资产转移 | Y | Y | Y | Y | Y |
多币种智能合约 | 困难 | 困难 | 困难 | 困难 | 困难 |
安全性 | 低 | 低 | 低 | 低 | 低 |
交易速度 | 慢 | 慢 | 慢 | 慢 | 慢 |
费率 | 中 | 高 | 中 | 中 | 低 |
项目举例 | 瑞波Interledger协议 | BTC Relay/Polkadot | Lighting network | FUSION | Ether Universe |
Interledger 协议(ILP)
未完
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.