自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(133)
  • 收藏
  • 关注

翻译 Attested Append-Only Memory: Making Adversaries Stick to their Word

写下这篇文章的目的是为了方便理解 Towards Scaling Blockchain Systems via Sharding这篇文章针对几种failure modelCrash failureFail-Stop failureOmission failureArbitrary failure: 文章主要是针对这种模型,也就是拜占庭模型Abstract作者在摘要中提出传统拜占庭...

2019-04-12 20:09:27 641 1

原创 Chainspace: A Sharded Smart Contracts Platfom(分片技术)

Chainspace: A Sharded Smart Contracts PlatfomAbstractSystem OverviewConsensus AlgorithmPrivacy by DesignAlgorithm analysereferenceAbstractChainspace作为一篇比较早的分片论文,好多细节没有涉及到,比如:在Dishonest模型下的数据恢复,具体的分片...

2019-03-25 22:02:42 1561 2

原创 Rapidchain: Scaling Blockchain via Full Sharding(分片论文)

Rapidchain: Scaling Blockchain via Full Sharding1 Abstract2 Background3 Question and SolutionQuestion:Solution4 Rapidchain4.1 Overview4.1 Bootstrap Process4.2 Consensus in Committee4.3 Cross-Shard Tra...

2019-03-25 21:32:47 3022 1

翻译 mLSM:Making Authenticated Storage Faster in Ethereum(部分核心内容翻译)

mLSM:Making Authenticated Storage Faster in EthereumAbstractIntroductionBackgroundBlockchainMerkle TreeEthereum protocolStorage in EthereumMerkle Patricia TrieLevelDBState trieThe Ethereum Storage Bot...

2019-03-12 20:48:01 1104 1

原创 关于以太坊分片(Sharding)的部分内容

分片 ShardingAbstractBackground Knowledge分片技术的实现Abstract分片技术作为以太坊2.0更新的主要目标之一,是为了解决以太坊中的可拓展性问题。分片技术的核心思路是让以太坊从网络上的每个节点都要验证一笔交易的模式,转型到只需要少部分节点来验证每笔交易的模式,只要验证每笔交易的节点足够多,那么整个系统就会仍是安全的。Background Knowled...

2019-03-04 09:44:15 841

原创 Istanbul-BFT共识算法以及算法中的liveness问题

首先需要声明的是Liveness的问题是搬运github上面的帖子链接在这里Title:Istanbul-BFT Consensus AlgorithmAbstractContentsAbstractIstanbul-BFT是集成在Quorum中的可选算法之一,论坛关于...

2019-01-15 21:16:27 1847 12

原创 Blockchain on AWS(相关概念介绍)

Blockchain on AWSWhat is blockchainCommon usages of blockchainComparing blockchainSelecting a blockchain platformBlockchain on AWSExampleEthereum VisionHyperLedger VisionConclusionApplication(HyperLed...

2019-01-15 11:18:50 343

原创 Tendermint共识算法

Tendermint共识算法1 Abstract2 Introduction3 Algorithm Details3.1 NewHeight3.2 Propose3.3 Prevote3.4 Precommit3.5 Commit4 Algorithm Analysis4.1 Safety4.2 Liveness5 Summary6 Reference1 Abstract区块链作为一个去中心化...

2019-01-06 22:08:34 1876 3

原创 以太坊开发(1)private network

资料来自https://github.com/ethereum私有链环境配置(基于Ubuntu1604)安装Geth客户端sudo apt-get updatesudo apt-get installsoftware-properities-commonsudo add-apt-repository -yppa:ethereum/ethereumsudo add-apt-repository

2017-11-14 21:37:30 428

原创 Markdown编辑器初体验

这是预览模式一级标题(#)二级标题(##)三级标题四级标题无序文档(让其出现·,只要在-后面加空格即可)文本1文本2文本3有序文档(-)-1 文本1 -2 文本2 -3 文本3添加链接([名称] (链接地址))百度添加图片链接(! [] (链接地址))引用(> 和文本之间要保持一个空格) 我轻轻的来了,正如我轻轻的走了 不带走一片云彩斜体和粗体(* 表示斜体 * ,* *

2017-11-14 10:53:08 182

原创 每天一条Linux语句11/14

ls命令是linux下最常用的命令。ls命令就是list的缩写,缺省下ls用来打印出当前目录的清单,如果ls指定其他目录那么就会显示指定目录里的文件及文件夹清单。 通过ls 命令不仅可以查看linux文件夹包含的文件而且可以查看文件权限(包括目录、文件夹、文件权限)查看目录信息等等。ls 命令在日常的linux操作中用的很多!1. 命令格式:ls [选项] [目录名]

2017-11-14 09:33:03 312

原创 Merkle Tree(默克尔树)

(首先声明部分内容来自网络,加上自己的理解,希望与各位多多交流学习)1 Merkle Tree概念Merkle Tree也称作Hash Tree,是存储Hash值得一种树。它的组成分成两类,一类是叶子节点,叶子节点是数据块;另一类是非叶子节点,它们是起串联作用的Hash对于Merkle Tree的理解,必须了解三样东西:1,.Hash 2.Hash List 3.Merkle Tree

2017-11-13 20:06:40 2865

原创 【2017.9.26】博客貌似好久没更新了

时间过得飞快啊 转眼间已经快来到了十月一,眼看博客很久没更新了,然后上来写写东西。最近一直在自己学c++primer 感觉自己好多基础的东西还没有掌握,或者说自己已经忘掉了很多东西,然后就开始学数据结构,学算法。感觉犹如痴人说梦,嗯。。。就是要踏踏实实的学吧!唉,不说了,苦逼的看书去了!

2017-09-26 20:33:12 244

原创 【菜鸟的leetcode之旅】231.power of two

【问题描述】简单的说就是求2的幂,这个用到的解题思路是利用了二进制的2的幂的特点。关于2的幂,都是1,10,100,1000...观察可以知道其首位是1,其它都为0.我们可以利用并运算,对二进制进行运算。其核心算法是n&(n-1)==0 bool isPowerOfTwo(int n) { if(n<=0) return false; return ((n&(n-1)

2017-09-19 18:24:16 290

原创 【菜鸟的leetcode之旅】String to integer atoi

【问题描述】将一个字符串转化成一个int型的值,注意在转化过程中要考虑到,为空,超过0x7fffffff或者小于0x80000000的情况,还要考虑到为负数的时候,还有注意在转化过程中,识别特殊符号。 int atoi(const char *str) { long long ans=0; int st=0; long long Max_num=0x7fffffff,

2017-09-19 17:47:42 300

原创 【知识补充】常见的几种排序方法

// 排序算法编程实践#include using namespace std;// 冒泡排序void BubbleSort(int a[], int n){ bool flag = true; int k = n; while (flag) { flag = false; for (int i = 1; i < k; i++) { if (a[i -

2017-09-18 17:20:46 313

原创 【菜鸟的leetcode之旅】674. Longest Continuous Increasing Subsequence

class Solution {public:int findLengthOfLCIS(int* nums, int numsSize) {if(numsSize==0)return 0;int max=0;int temp=1;for(int n=1;n<numsSize;n++){if(*(nums+n)>*(nums+n-1)){temp++;}else{if(

2017-09-18 15:08:08 438

原创 【2017.9.5】研究生,新的起点,新的开始

时间过的很快,离开csdn已经三年有余,这三年中,发生了很多事情,从大学开始的时候意气风发,编程的热情犹如滔滔江水,老师的那句有兄弟不孤单也一直铭记,再到大二大三彻底荒废专业课和专业技能,再到大三下学期醒悟准备考研,过程很艰辛,结果不如人意。没有考入自己理想的学校,可能这个结果应该自己也能想到吧,毕竟自己也没有付出像别人那么多的努力,但是好在找到一个省内的大学读研,也算是给自己找个缓冲的环境吧!现

2017-09-05 19:44:46 437

原创 第十五周 项目2 用文件保存及格并且总分高于平均分学生名单

#include #include #include #include using namespace std;//定义学生类class Student{public: Student() {}; ~Student(); double get_total(); static int get_stu_num(); st

2014-06-03 15:06:23 1062

原创 第十五周 项目1-工资数据的输入 读取

#include #include#include#includeusing namespace std;int main( ){ ifstream infile("a.txt",ios::in); if(!infile) { cerr<<"open error"<<endl; exit(1); } //这里是要编

2014-06-03 12:11:07 803

原创 第十五周 【项目1-工资数据的输入】 傻傻的手动输入

#include using namespace std;int main( ){ double salarys[500] , t; int n=0; while(cin>>salarys[n]) { n++; //从cin流读取数据 } //将n名职工的工资排序后输出 for(int i=0;i<n-1;i++)

2014-06-02 20:46:51 907 2

原创 第十三周 项目1 确定点在圆上的位置(补发)

#include #includeusing namespace std;class Point{public: Point(double a=0,double b=0):x(a),y(b) {} //构造函数 double distance(const Point &p) const; //求距离 friend ostream & operato

2014-05-27 14:54:21 708

原创 第十四周 oj 利用虚函数-计算图形面积

#include #include using namespace std;class Shape{public: virtual double area() const = 0;};class Circle:public Shape{private : double r;public : Circle(double rr):

2014-05-27 14:33:17 871

原创 第十四周 【项目3-立体类族共有的抽象类】

#includeusing namespace std;class CSolid{public: virtual double area() const =0; virtual double vv() const =0;};class CCube:public CSolid{private: double r;public:

2014-05-27 09:12:03 647

原创 第十四周 【项目2-形状类族的中的纯虚函数】

#includeusing namespace std;class Shape{public: virtual double area() const =0;};class Circle:public Shape{private: double r;public: Circle(double rr):r(rr){}; vi

2014-05-27 08:56:20 550

原创 第十四周 【项目1-动物这样叫】下面是给出的基类Animal声明和main()函数。

#include #include using namespace std;class Animal{public: virtual void cry() { cout<<"不知哪种动物,让我如何学叫?"<<endl; }};class Mouse:public Animal{private: string n

2014-05-27 08:33:03 1335

原创 第十一周 项目 3 点类派生直线类

#include#includeusing namespace std;class Point //定义坐标点类{public: Point():x(0),y(0) {}; Point(double x0, double y0):x(x0), y(y0) {}; double getX() { return x;

2014-05-13 15:02:20 880

原创 第十二周 项目1 . 3

#include using namespace std;class Animal{public: Animal() {} void eat() { cout << "eat\n"; }protected: void play() { cout << "play\n"; }

2014-05-13 14:24:21 772

原创 第十二周 项目1 . 2

#include using namespace std;class Animal{public: Animal() {} void eat() { cout << "eat\n"; }protected: void play() { cout << "play\n";

2014-05-13 14:21:44 695

原创 第十二周 项目1 项目1 - 长颈鹿类对动物类的继承

#include using namespace std;class Animal //动物类{public: Animal() {} void eat(){ cout << "eat\n"; }//protected: void play() { cout << "play\n";

2014-05-13 14:07:12 634

原创 第十二周 项目4 日期时间类

#include using namespace std;class Date{public: void SetDate(int y,int m,int d) { Year=y; Month=m; Day=d; } void PrintDate () { cou

2014-05-13 09:33:54 867

原创 第十二周 项目2 教师兼干部类

#include#include using namespace std;class Teacher{public: Teacher(string nam,int a,char s,string tit,string ad,string t); void display();protected: string name; int age; char se

2014-05-13 08:58:22 706

原创 第十二周 项目3 摩托车继承自行车和机动车

#include #include#include using namespace std;enum vehicleStaus {rest, running}; //车辆状态:泊车、行进class vehicle //车辆类{protected: int maxSpeed; //最大车速 int currentSpeed; //当前速度

2014-05-13 08:48:20 1039

原创 第十一周 项目 3 点类派生直线类

#include #includeusing namespace std;class Point{public: Point():x(0),y(0){}; Point(double x0,double y0):x(x0),y(y0){}; void PrintPoint(); double x,y;};void Point::Prin

2014-05-06 15:20:20 608

原创 第十一周 项目 2 职员也有工资了

#include using namespace std;class CPerson{protected: string m_szName; string m_szId; int m_nSex;//0:women,1:man int m_nAge;public: CPerson(string name,string id,int

2014-05-06 15:03:16 625

原创 第十一周 项目 1 班长和学生的信息

#include using namespace std;class Stu //声明基类{public: Stu(int n, string nam ) { num=n; name=nam; } //基类构造函数 void display( ) { cout<<"学号是"

2014-05-06 14:42:16 658

原创 第九周 项目3

#include #include using namespace std;class CFraction{private: int nume; // 分子 int deno; // 分母public: CFraction(int nu=0,int de=1):nume(nu),deno(de) {} void simplify(

2014-04-22 15:18:21 597

原创 第九周 项目2

#include using namespace std;class CTime{private: unsigned short int hour; // 时 unsigned short int minute; // 分 unsigned short int second; // 秒public: CTime(int h=

2014-04-22 15:15:29 618

原创 第九周 项目1

#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r; imag=i;} Complex operator+(Complex &c2); Complex operator-

2014-04-22 14:37:32 520

原创 第八周 项目3 分数类中的运算符重载

#include #include using namespace std;int gcd(int m,int n);class CFraction{private: int nume; // 分子 int deno; // 分母public: CFraction(int nu=0,int de=1):nume(nu),deno(de)

2014-04-15 14:52:03 570

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除