# lib-blockchain

> Basic blockchain implementation

Latest version **2.1.0** (published 2021-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install lib-blockchain
pnpm add lib-blockchain
yarn add lib-blockchain
bun add lib-blockchain
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-10-12 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 36.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | luciancaetano |
| Keywords | blockchain, bitcoin, crypto |

## Links

- npm: https://www.npmjs.com/package/lib-blockchain
- Repository: https://github.com/luciancaetano/lib-blockchain
- Homepage: https://github.com/luciancaetano/lib-blockchain#readme
- Issues: https://github.com/luciancaetano/lib-blockchain/issues
- npm.io page: https://npm.io/package/lib-blockchain

## Dependencies (1)

- [level](https://npm.io/package/level.md) ^7.0.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2021-10-12
- 2.0.1 — 2021-10-12
- 2.0.0 — 2021-10-12
- 1.2.0 — 2021-09-26
- 1.1.4 — 2021-09-26
- 1.1.2 — 2021-09-25
- 1.1.0 — 2021-09-25
- 1.0.1 — 2021-09-24
- 1.0.0 — 2021-09-24

## README

# lib-Blockchain
Blockchain implementation using leveldb as storage engine.

# Usage

```javascript
import {Blockchain} from 'lib-Blockchain';

const b = new Blockchain('db-path');

b.genesis(); // create genesis block
b.push({ data: Buffer.from('Hello world', 'utf-8') });

console.log(b.toArray());
```

---
_Source: https://npm.io/package/lib-blockchain · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
