Rust Stellar Notation

Rust library for encoding and decoding objects in Stellar Notation format.

Usage

```

stellar-notation = "0.9.16"

```

```

use stellar_notation::{ encode, decode };

```

Encoding

Support

| Type | Support | |---|---| | u8 | ✅ | | u16 | ✅ | | u32 | ✅ | | u64 | ✅ | | u128 | ✅ | | u256 | 🚧 | | i8 | 🚧 | | i16 | 🚧 | | i32 | 🚧 | | i64 | 🚧 | | i128 | 🚧 | | i256 | 🚧 | | f32 | 🚧 | | f64 | 🚧 | | bool | 🚧 | | list | ✅ | | bytes | ✅ |

Unsigned Integers

```

let encoded_u8: String = encode::u8(1);

let integer: u8 = decode::asu8(encodedu8);

```

Bytes

```

let encoded_bytes: String = encode::bytes(vec![1,2,3]);

let bytes: Vec = decode::asbytes(encodedbytes);

```

List

```

let encodedlist: String = encode::list(vec![encodedu81, encodedu82, encodedu8_3]);

let list: Vec = decode::aslist(encodedlist);

```

2021-09-14