Expand description
Client library for the Ubiq platform
Provides client interfaces for encrypting and decrypting data
using the Ubiq
platform
.
Example
use ubiq::credentials::Credentials;
use ubiq::encryption::encrypt;
use ubiq::decryption::decrypt;
let creds = Credentials::new(None, None).unwrap();
let ct = encrypt(&creds, b"abc").unwrap();
let pt = decrypt(&creds, &ct).unwrap();
assert!(pt != ct);
assert!(pt == b"abc");
Modules
- Credentials for authenticating to the Ubiq platform
- Interfaces for decrypting data
- Interfaces for encrypting data
- Errors returned by the Ubiq library
- Common result interface used by the library