Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shelvenzhou/secret-file
Ink! Contract demo for AES-256-GCM
https://github.com/shelvenzhou/secret-file
Last synced: 2 months ago
JSON representation
Ink! Contract demo for AES-256-GCM
- Host: GitHub
- URL: https://github.com/shelvenzhou/secret-file
- Owner: shelvenzhou
- Created: 2021-12-23T09:20:11.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T07:23:54.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T15:03:49.274Z (5 months ago)
- Language: Rust
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-phat-contracts - Secret File - secret file implementation using Phat Contracts. (Phat Contract Examples / Consumer Contract Examples)
README
# Build
Install Rust and Cargo following the [installation guide](https://doc.rust-lang.org/cargo/getting-started/installation.html). You need to install the latest nightly version of Rust.
Install the `cargo-contract` to compile the ink! contract
```shell
cargo install cargo-contract --force
```Compile the contract
```shell
cargo +nightly contract build
```and run the unittests
```shell
cargo +nightly contract test
```