Crates.io | ore-encoding-rs |
lib.rs | ore-encoding-rs |
version | 0.23.3 |
source | src |
created_at | 2022-01-29 23:38:25.938421 |
updated_at | 2022-05-03 03:57:06.86594 |
description | Plaintext encoding to prepare terms for encryption by ore.rs |
homepage | https://github.com/cipherstash/ore_encoding.rs |
repository | |
max_upload_size | |
id | 523822 |
size | 49,034 |
This is a companion package to ore.rs that can generate and manipulate u64
plaintexts before they are encrypted by ore.rs
. Being able to manipulate the intermediate representation of a term is critical for implementing range queries.
Currently a OrePlaintext<u64>
can be generated from f64
, f32
, u64
(no-op), u32
, u16
, u8
and bool
.
Additional functionality is provided for creating OreRange<u64>
instances.
u64
plaintexts from Unix timestamps with a user-determined resolution (e.g. years, months, days, etc).Reference documentation is on docs.rs/ore-encoding-rs.
To build, run:
cargo build
To test, run:
cargo test