4 releases (breaking)

new 0.4.0 Mar 12, 2025
0.3.0 Dec 19, 2024
0.2.0 Dec 4, 2024
0.1.0 Oct 16, 2024

#949 in Cryptography

Download history 85/week @ 2024-11-21 76/week @ 2024-11-28 265/week @ 2024-12-05 21/week @ 2024-12-12 147/week @ 2024-12-19 30/week @ 2024-12-26 547/week @ 2025-01-02 260/week @ 2025-01-09 173/week @ 2025-01-16 366/week @ 2025-01-23 409/week @ 2025-01-30 429/week @ 2025-02-06 139/week @ 2025-02-13 96/week @ 2025-02-20 250/week @ 2025-02-27 1213/week @ 2025-03-06

1,703 downloads per month
Used in 2 crates (via aranya-daemon)

AGPL-3.0-only

430KB
9K SLoC

Aranya Core

Aranya is lovingly crafted and supported by SpiderOak. Aranya is licensed under the AGPL- if you want to use it commercially, drop us a line!

What's Contained In This Repo

This repo is a cargo workspace for the Rust implementation for the core of the Aranya platform. This is a library that includes the storage module (for DAG and FactDB), crypto module (with default crypto engine automatically selected), sync engine, and runtime client (including policy VM).

It also includes Aranya Fast Channels to enable encrypted channels between 2 peers allowing either unidirectional or bidirectional communication.

More documentation on Aranya is provided here: Aranya Documentation.

Get Started

Aranya Core is written in Rust. Additionally, this repo contains tools for our C API wrappers. The full list of dependencies is below.

Dependencies

NOTE: When building with Rust, rustup will automatically download and use the version specified by the rust-toolchain.toml.

NOTE: we have tested using the specified versions above. Other versions of these tools may also work.

Install cargo-make

This repo uses cargo-make as a task runner.

cargo install cargo-make --locked

Usage

cargo-make can be used as a cargo plugin via cargo make <task> or directly as makers <task>.

Note that you must be in the root directory of the repo to run tasks. To view all tasks, run cargo make or see Makefile.toml.

# lists all tasks
makers

# auto-format files
makers fmt

# run all unit tests
makers unit-tests

# run correctness checks
makers correctness

Contributing

Find information on contributing to the Aranya project in CONTRIBUTING.md.

Maintainers

This repository is maintained by software engineers employed at SpiderOak


lib.rs:

Identity and Access Management (IdAM) for Aranya.

Design

Aranya's IdAM system is written in our proprietary language for policy code. The language syntax and logic is described in the policy lang spec, while an in-depth explanation of the policy that makes up Aranya's IdAM system can be found in the default policy.

Aranya's IdAM code makes use of several external functions belonging to other modules, which are callable by the policy via a foreign function interface (FFI) of the APIs made available by a particular module. For details on the cryptographic APIs used by IdAM, see IDAM crypto.

Dependencies

~18–30MB
~471K SLoC