Git Product home page Git Product logo

bitcoin's Introduction

bitcoin

说明

这是基于区块链的学习,使用Go语言开发的私有区块链,旨在了解区块链的逻辑。 咱们的目的是了解其背后的技术原理,而不是“挖矿”或者“炒币”。

环境

go version >= 1.18

笔记

哈希算法并不是加密算法,它是提取数据的特征值进行计算, 其结果是不可逆的,即无法恢复原始数据。哈希算法具有:不可逆、唯一性、防篡改的特点。

对于数据库(例如MySQL)有唯一键,可以使用int自增,纯数字是可被预料的,哈希值不能被预料。 uuid作为主键也不可预料、唯一、不可逆。要让相同的数据计算后得到相同的值,用来验证数据的准确性, 证明你算力的工作量,MD5也可以,只是比特币选择了SHA256而已。

所以在我看来,计算哈希值的过程除了浪费电力、浪费计算机性能、产生温室气体外,不能说毫无意义, 只能说没啥软用。有用的可能就是比特币的价值了,燃烧你的GPU,韭菜成熟了就割一波,再长再割, 到头来不过还是资本的游戏。

bitcoin's People

Contributors

xijaja avatar

Stargazers

 avatar breeze avatar  avatar  avatar

Watchers

 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.