• Stars
    star
    217
  • Rank 175,951 (Top 4 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

IOTA Streams, a framework for cryptographic protocols called Applications. Replaces Masked Authenticated Messaging (MAM). Alpha version.


A cryptographic framework for building secure messaging protocols

Developer documentation portal

Discord StackExchange Apache 2.0 license

About β—ˆ Prerequisites β—ˆ Installation β—ˆ Getting started β—ˆ API reference β—ˆ Examples β—ˆ Supporting the project β—ˆ Joining the discussion


About

IOTA Streams is a work-in-progress framework for building cryptographic messaging protocols. Streams ships with a built-in protocol called Channels for sending authenticated messages between two or more parties on the Tangle.

As a framework, Streams allows developers to build protocols for their specific needs.

This process will be documented as the development progresses. However, since this crate is in an alpha stage of development it is still likely to change.

At the moment, IOTA Streams includes the following crates:

Prerequisites

To use IOTA Streams, you need the following:

We also recommend updating Rust to the latest stable version:

rustup update stable

Installation

To use the library in your crate you need to add it as a dependency in the Cargo.toml file.

Because the library is not on crates.io, you need to use the Git repository either remotely or locally.

no_std is currently supported. However cargo nightly must be used to build with no_std feature.

Getting started

If you don't have a rust project setup yet you can create one by running,

cargo new my-library

Remote Add the following to your Cargo.toml file:

[dependencies]
anyhow = { version = "1.0", default-features = false }
iota-streams = { git = "https://github.com/iotaledger/streams", branch  = "develop"}

Local

  1. Clone this repository

    git clone https://github.com/iotaledger/streams
  2. Add the following to your Cargo.toml file:

    [dependencies]
    iota-streams = { version = "0.1.2", path = "../streams" }

Getting started

After you've installed the library, you can use it in your own Cargo project.

For example, you may want to use the Channels protocol to create a new author and subscriber like so:

use iota_streams::app_channels::api::tangle::{Author, Subscriber};
use iota_streams::app::transport::tangle::PAYLOAD_BYTES;
use iota_streams::app::transport::tangle::client::Client;

fn main() {
    let node = "http://localhost:14265";
    let client = Client::new_from_url(node);

    let encoding = "utf-8";
    let multi_branching_flag = true;

    let mut author = Author::new("AUTHORSSEED", encoding, PAYLOAD_BYTES, multi_branching_flag, client);
    
    let mut subscriber = Subscriber::new("MYSUBSCRIBERSECRETSTRING", encoding, PAYLOAD_BYTES, client);
}

For a more detailed guide, go to our documentation portal.

API reference

To generate the API reference and display it in a web browser, do the following:

cargo doc --open

Examples

We have an example in the examples directory, which you can use as a reference when developing your own protocols with IOTA Streams.

A no_std version can be found in iota-streams-app-channels-example directory

Supporting the project

Please see our contribution guidelines for all the ways in which you can contribute.

Running tests

We use code comments to write tests. You can run all tests by doing the following from the streams directory:

cargo test --all

Updating documentation

If you want to improve the code comments, please do so according to the guidelines in RFC 1574.

Joining the discussion

If you want to get involved in discussions about this technology, or you're looking for support, go to the #streams-discussion channel on Discord.

More Repositories

1

legacy-wallet-use-trinity-wallet-instead

IOTA Wallet
JavaScript
2,076
star
2

iri

IOTA Reference Implementation
Java
1,158
star
3

iota.js

IOTA JavaScript
TypeScript
966
star
4

stronghold.rs

Stronghold is a secret management engine written in rust.
Rust
489
star
5

firefly

The official IOTA and Shimmer wallet
TypeScript
478
star
6

trinity-wallet

Trinity is IOTA's old, deprecated wallet. Use Firefly instead.
JavaScript
473
star
7

goshimmer

Prototype implementation of IOTA 2.0
Go
389
star
8

iota.go

IOTA Go API Library. Find documentation on https://wiki.iota.org/build/welcome
Go
356
star
9

iota.py

PyOTA: The IOTA Python API Library
Python
344
star
10

hornet

HORNET is a powerful IOTA fullnode software
Go
306
star
11

identity.rs

Implementation of the Decentralized Identity standards such as DID and Verifiable Credentials by W3C for the IOTA Tangle.
Rust
285
star
12

wasp

Node for IOTA Smart Contracts
Go
285
star
13

bee

A framework for IOTA nodes, clients and applications in Rust
Rust
277
star
14

iota.rs

Official IOTA Rust library.
Rust
229
star
15

wallet.rs

Build wallets and other applications involving IOTA value transfer.
Rust
159
star
16

iota-java

IOTA Java API Library. Find documentation on
Java
144
star
17

entangled

enTangle'd is an amalgamation of all things Tangle
C
110
star
18

iota-wiki

IOTA Wiki
TypeScript
109
star
19

tips

Tangle Improvement Proposals for the IOTA technology stack.
JavaScript
86
star
20

android-wallet-app

IOTA Android Wallet Application
Java
82
star
21

iota.legacy.rs

IOTA implementation ( rust )
Rust
77
star
22

chronicle.rs

A framework for building IOTA permanodes
Rust
73
star
23

iota.c

IOTA client library in C
C
67
star
24

crypto.rs

The canonical source of cryptographic ground-truth for IOTA projects that use Rust.
Rust
66
star
25

MAM

Masked Authentication Messaging
Rust
65
star
26

iota.flash.js

JavaScript
64
star
27

iota.lib.csharp

Iota.Lib.Csharp
C#
62
star
28

IOTA-2.0-Research-Specifications

This is the repository of the IOTA 2.0 Research Specifications.
JavaScript
61
star
29

explorer

Explore the IOTA Tangle
TypeScript
60
star
30

hive.go

A Go library containing data structures, various utils and abstractions which are used by both GoShimmer and Hornet.
Go
60
star
31

one-click-tangle

"One Click Tangle" intends to make lives easier to IOTA adopters by providing pre-configured scripts and recipes that allow to deploy IOTA Networks and Nodes "in one click".
Shell
55
star
32

spark-wallet

A low-security wallet intended for short-term use and to send small amounts of IOTA tokens
Svelte
55
star
33

hub

C++
54
star
34

data-marketplace

Proof of Concept Data Marketplace built using MAM and IOTA Tangle.
JavaScript
54
star
35

documentation-platform

Legacy documentation platform
JavaScript
53
star
36

wiki-legacy

These docs have moved!
52
star
37

iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Rust
50
star
38

kerl

IOTA is adding an additional hashing function, based on Keccak, with conversion to ternary. The following document describes the functionality and specification to be implemented.
Rust
50
star
39

industry-marketplace

The world's first autonomous and decentralized Industry Marketplace
JavaScript
49
star
40

node-dashboard

TypeScript
45
star
41

compass

Java
44
star
42

iota-core

Go
43
star
43

qupla

A QUbic Programming LAnguage
Java
43
star
44

meta-iota

OpenEmbedded layer for the IOTA Distributed Ledger
BitBake
42
star
45

cli-wallet

Rust
41
star
46

IOTA-2.0-DevNet-wallet

GUI Wallet for use with the IOTA 2.0 DevNet
TypeScript
39
star
47

curl.lib.js

IOTA Proof-of-Work algorithm ported to Javascript to work in WebGL2-enabled browsers
JavaScript
38
star
48

mam.js

Pure JavaScript implementation of MAMv0
TypeScript
37
star
49

poc-ipfs

Demonstration of combining IOTA with IPFS for data storage.
TypeScript
33
star
50

identity.ts

TypeScript
32
star
51

cli-app

CLI App that acts as a wallet
JavaScript
31
star
52

engineering-updates

Periodical updates from the Engineering teams
31
star
53

ccurl

C port of the Curl library
C
30
star
54

integration-services

TypeScript
30
star
55

wasplib

Go
29
star
56

ict

Java
29
star
57

TangleSim

Go
29
star
58

giotan

The CLI Tool for IOTA in Go
Go
28
star
59

chat.ixi

JavaScript
28
star
60

iota.crypto.js

JavaScript
28
star
61

vdf

Implementation of verifiable delay function.
Python
25
star
62

cliri

Coo Less IRI
Java
24
star
63

introduction-docs

Documentation Page for Chrysalis (IOTA 1.5) and Stardust (Shimmer)
JavaScript
24
star
64

docs

IOTA documentation website - PRs welcome!
JavaScript
24
star
65

ledger-iota-app

C
23
star
66

participation-events

22
star
67

HyperledgerFabric-IOTA-Connector

IOTA connector for Hyperledger Fabric Chaincode
Go
22
star
68

selv-mobile

Svelte
21
star
69

chrysalis-faucet

HTML
21
star
70

qubic

Java
20
star
71

iota-area-codes

IACs are a proposed standard for tagging IOTA transactions with a geo-location, which allows them to be fetched based on their location.
TypeScript
19
star
72

fpc-sim

Fast Probabilistic Consensus Simulator
Go
19
star
73

autopeering-sim

Autopeering Simulator
Go
19
star
74

tangle-utils-website

A web site full of utilities for all things tangle, transaction and IOTA.
TypeScript
18
star
75

iota-gui-beta

Beta of IOTA GUI client.
17
star
76

FirstPartyOracle

JavaScript
16
star
77

gh-tangle-release

GitHub Action to publish release details to the Tangle
JavaScript
16
star
78

ledger.rs

Rust
15
star
79

remote-signer

Rust
15
star
80

client-load-balancer

Perform client side load balancing across a list of nodes
TypeScript
15
star
81

bee-meeting-minutes

14
star
82

outdated-mam.client.js

DEPRECATED MAM js client
JavaScript
14
star
83

trade-poc

IOTA Supply Chain Proof-of-Concept
JavaScript
14
star
84

sandbox

Go
14
star
85

access-server

C
14
star
86

mam-explorer

JavaScript
13
star
87

ccurl.interface.js

cCurl Interface for NodeJS
JavaScript
13
star
88

channels-examples

Sample code for IOTA Channels
Rust
13
star
89

bee-rfcs

RFCs to changes to Bee
Shell
13
star
90

inx-chronicle

IOTA permanode implemented using the IOTA Node Extension (INX) interface.
Rust
13
star
91

chronicle

C
13
star
92

esp32-client-sdk

IOTA Client Software Development Kit(SDK) for ESP32
C
13
star
93

seed-migration-tool

IOTA Seed Migration Tool
HTML
12
star
94

iota-css-theme

SCSS
12
star
95

discord-invite-captcha

Simple webserver that will grant you a one-time-use invite for a Discord server if you solve the Captcha.
HTML
12
star
96

drng

Go
12
star
97

tangle.js

Libraries and utilities that make it easier to build applications on the Tangle
TypeScript
12
star
98

streams-examples

Rust
11
star
99

mam.c

C
11
star
100

iota-identity-tutorial

TypeScript
11
star