Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 일반유저
- 솔리디티
- Docker
- 설치
- 블록체인
- 시퀄라이즈
- node.js 교과서 따라하기
- npm
- 라우터
- 머클루트
- 리액트
- wsl
- 리눅스
- MariaDB
- wget
- 쉘스크립트
- 환경변수
- immer
- Sequelize
- 변수
- 노드
- 깃허브
- 이더리움
- 머클트리
- centos
- 우분투
- 전역설치
- 리액트를 다루는 기술
- 자바스크립트
- 벨로포터
Archives
- Today
- Total
목록블록생성 (1)
코드코코

블록생성 //block.js const cryptoJs = require('crypto-js') const fs = require('fs') const merkle = require('merkle') //블록 구조체 선언 : 헤더, 바디 class Block { constructor(header, body) { this.header = header this.body = body } } //블록헤더 구조체 선언 : 헤더 구성 요소 나열 class BlockHeader { constructor(index, version, previousHash, timestamp, merkleRoot, bit, nonce) { this.index = index this.version = version this.previou..
블록체인
2021. 12. 27. 10:56