WengQiang's Blog

where there is a will, there is a way!

获取文件夹下的所有文件

  1. aux_source_directory(<dir>, <variable>) collects the names of all source files in the specified directory and store the list in the variable provided.

1
2
3
4
AUX_SOURCE_DIRECTORY(libraries/api API_SRC)
AUX_SOURCE_DIRECTORY(libraries/net NET_SRC)
AUX_SOURCE_DIRECTORY(libraries/rpc RPC_SRC)

阅读全文 »

发明人以及相关节点时间

  1. 中本聪于2008-10-31号提出了比特币的设计白皮书
  2. 2009年公布了最初的实现代码, 第一个比特币是2009-01-03(18:15:05)生成
阅读全文 »

数字签名算法(digital signature algorithm)

ECDSA (elliptic curve digital signature algorithm) secp256k1(the parameters of ecdsa used in bitcoin)

  1. private key: 32 bytes(256 bit)
  2. compressed or uncompressed public key: 33 bytes / 65 bytes
  3. signature or compact_signature: 72 bytes/ 65 bytes
    阅读全文 »

创建screen

screen screen -S "new screen name"

note: 创建新的screen窗口

连接上detach的screen

screen -r screen-id/thread-id

note: 默认用screen不带参数生成的窗口的前面的数字screen id也就是thread id

连接上attached的screen

screen -x screen-id/thread-id

detach一个窗口以及kill一个窗口

ctrl-a + d: detach a window ctrl-a + k: kill a window

阅读全文 »
0%