05 2018 档案

KADEMLIA算法
摘要:一、概述 基于异或距离算法的分布式散列表(DHT), 实现了去中心化的信息存储于查询系统; Kademlia将网络设计为具有160层的二叉树,树最末端的每个叶子看作为节点,节点在树中的位置由同样是160bit的节点ID决定。每个bit的两种可能值(0或1),决定了节点在书中属于左边还是右边的子树,1 阅读全文

posted @ 2018-05-31 17:05 阳台 阅读(1344) 评论(0) 推荐(0) 编辑

golang 类型转换
摘要:1 import ( 2 "bytes" 3 "encoding/binary" 4 "encoding/gob" 5 "fmt" 6 ) 7 8 func str_to_byte(src string) []byte { 9 //strSlice := []string{src} 10 buffer ... 阅读全文

posted @ 2018-05-28 18:44 阳台 阅读(246) 评论(0) 推荐(0) 编辑

golang 小例子
摘要:import ( "bytes" "encoding/binary" "encoding/gob" "fmt" ) func str_to_byte(src string) []byte { //strSlice := []string{src} buffer := &bytes.Buffer{} 阅读全文

posted @ 2018-05-28 18:36 阳台 阅读(457) 评论(0) 推荐(0) 编辑

ipfs get 代码分析
该文被密码保护。

posted @ 2018-05-23 11:53 阳台 阅读(2) 评论(0) 推荐(0) 编辑

go-ehtereum编译:
摘要:git clone https://github.com/ethereum/go ethereum.git cd go ethereum && git checkout make geth //生成的geth在build/bin/geth 创建私链 1、创建文件夹来存储私链数据: mkdir pri 阅读全文

posted @ 2018-05-16 16:54 阳台 阅读(242) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示