Git Product home page Git Product logo

merkle-dag's Introduction

分布式存储实验一

一、背景介绍

1. file.go文件中定义了以下几种接口:

  • Node为文件或者文件夹,根据Type可以判断
  • File为文件,可以通过[]byte获取文件内容(大家不需要通过io从文件系统或者网络中读取文件)
  • Dir为文件夹,可以通过It()函数获取到遍历文件的迭代器
  • DirIterator为文件夹迭代器,可以获取当前文件夹下的文件/文件夹

2. kvstore 为保存KV的存储器接口,具体实现不需要大家关心,由实验系统来实现

二、实验目标

大家根据上面的两个接口,实现 dag.go 中的 Add 函数,将 Node 中的数据保存在 KVStore 中,然后计算出Merkle Root

三、代码提交

大家在github上fork当前仓库,然后 git clone 自己的仓库,把代码提交到仓库之后,向学委提交自己的仓库地址。截止日期3月15日。

merkle-dag's People

Contributors

1303-yzym avatar bernardlowe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.