Skip to content

Latest commit

 

History

History
147 lines (115 loc) · 2.68 KB

File metadata and controls

147 lines (115 loc) · 2.68 KB

Installation Guide

Prerequisites

Download the latest toolchain for you programming language:

{% tabs %} {% tab title="Rust" %}

{% tab title="Python" %}

  • Python 3.8 or higher. (See downloads.) {% endtab %} {% endtabs %}

API-specific Installation

Choose the APIs you need for your project:

Autonomi Client

{% tabs %} {% tab title="Rust" %}

cargo add autonomi

{% endtab %}

{% tab title="Python" %}

pip install autonomi-client

{% endtab %}

{% tab title="Node.js" %}

npm install `@withautonomi/autonomi`

{% endtab %} {% endtabs %}

Ant Node

{% tabs %} {% tab title="Rust" %}

cargo add ant-node

{% endtab %}

{% tab title="Python" %}

pip install antnode

{% endtab %}

{% tab title="Node.js" %} Ant Node is not available for Node.js currently. {% endtab %} {% endtabs %}

BLS Threshold Crypto

{% tabs %} {% tab title="Rust" %}

cargo add blsttc

{% endtab %}

{% tab title="Python" %}

pip install blsttc

{% endtab %}

{% tab title="Node.js" %} blsttc is not available for Node.js currently. {% endtab %} {% endtabs %}

Self Encryption

{% tabs %} {% tab title="Rust" %}

cargo add self_encryption

{% endtab %}

{% tab title="Python" %}

pip install self-encryption

{% endtab %}

{% tab title="Node.js" %} Self Encryption is not available for Node.js currently. {% endtab %} {% endtabs %}

Verifying Installation

Test your installation by running a simple client initialization:

{% tabs %} {% tab title="Rust" %}

use autonomi::Client;

let client = Client::init().await.expect("Could not initialize the client");
println!("Client initialized successfully");

{% endtab %}

{% tab title="Python" %}

from autonomi_client import Client

client = await Client.init()
print('Client initialized successfully')

{% endtab %}

{% tab title="Node.js" %}

import { Client } from '@withautonomi/autonomi'

const client = await Client.init()
console.log('Client initialized successfully')

{% endtab %} {% endtabs %}

Next Steps