Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubixchain/finao-spv-poc
https://github.com/rubixchain/finao-spv-poc
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/rubixchain/finao-spv-poc
- Owner: rubixchain
- Created: 2023-08-16T05:01:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T11:12:19.000Z (about 1 year ago)
- Last Synced: 2024-04-17T19:17:58.670Z (7 months ago)
- Language: Go
- Size: 484 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Transform Encryption
This Rust program demonstrates how to use the Recrypt library to encrypt, transform, and decrypt data using public and private keys.
## Overview
The program performs the following steps:create_key_pair() - create new Encryption KeyPairs and Signing Keypairs using rng returns
pub_key: [u8; 33],
pvt_key: [u8; 32],
sign_key: [u8; 32],
ver_key: [u8; 33],encrypt_data() - encrypt data to delegators pub key and splits into fragments. Retruns ciphertext and fragments
decrypt_data() - decrypt data to be called by delegator by passing cipher text and relevant private key
## Usage
Clone the repository or download the source code.Compile and run the program:
`cargo run`Review the output and any assertion errors to understand the behavior of the umbral-rs library.
## Dependencies
This program depends on the following crates:[umbral-pre](https://crates.io/crates/umbral-pre/0.2.0): A crate that provides cryptographic primitives for data encryption, transformation, and decryption. We are using v0.2.0 for compatitbiltiy reasons.