# @aldea/core

> Core Aldea data structures and cryptographic functions.

Latest version **0.7.2** (published 2023-12-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @aldea/core
pnpm add @aldea/core
yarn add @aldea/core
bun add @aldea/core
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.2 |
| Published | 2023-12-11 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | calvo.generico, brentongunning, libitx |

## Links

- npm: https://www.npmjs.com/package/@aldea/core
- npm.io page: https://npm.io/package/@aldea/core

## Dependencies (3)

- [@scure/base](https://npm.io/package/@scure/base.md) ^1.1.1
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.3.0
- [@noble/ed25519](https://npm.io/package/@noble/ed25519.md) ^2.0.0

## Recent versions

- 0.7.2 (latest) — 2023-12-11
- 0.7.0 — 2023-11-22
- 0.6.0 — 2023-10-09
- 0.5.0 — 2023-09-21
- 0.4.0 — 2023-07-19
- 0.3.9 — 2023-06-29
- 0.3.5 — 2023-06-05
- 0.3.4 — 2023-05-30
- 0.3.2 — 2023-05-30
- 0.3.1 — 2023-05-29
- 0.3.0 — 2023-05-29
- 0.2.0 — 2023-05-24
- 0.1.5 — 2023-05-19
- 0.1.4 — 2023-05-19
- 0.1.3 — 2023-05-17
- … 3 more at https://npm.io/package/@aldea/core/versions

## README

# Aldea Core

![Version](https://img.shields.io/npm/v/@aldea/core?style=flat-square)
![License](https://img.shields.io/npm/l/@aldea/core?style=flat-square)

> Core Aldea data structuresand cryptographic functions.

TODO.

## Installation

Aldea Core is published to the NPM registry. Install the package in your project with `npm` or an alternative NPM client:

```shell
npm install @aldea/core
```

## Keys and addresses

Aldea uses BLAKE3-flavoured Ed25519 cryptography. Keys and addresses can be generated:

```ts
import { KeyPair, Address } from '@aldea/core'

const keys = KeyPair.fromRandom()
const address = Address.fromPubKey(keys.pubKey)

console.log(keys.privKey.toHex())
console.log(keys.pubKey.toHex())
console.log(address.toString())
```

## License

Aldea is open source and released under the [Apache-2 License](https://github.com/aldeacomputer/aldea-js/blob/main/packages/core/LICENSE).

© Copyright 2023 Run Computer Company, inc.

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