adrianmcli / adrianmcli/simple-js-blockchain

Finish functions for an actual blockchain

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
6
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Need quite a few more functions in order to make this an actual functional blockchain.

- [ ] fn: add a transaction to the current head block
- [ ] fn: mine the current head block and attach a new blank block as head
- [ ] fn: return current head block
- [ ] fn: get current head block hash
- [ ] fn: get entire block chain

Note that I may also want to store the entire blockchain in a JS object keyed by its hash. The block head can be stored separately, since it is not yet complete and needs to be filled with transactions before being mined.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.