-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from ideal-lab5/release/0.1.0
Release 0.1.0
- Loading branch information
Showing
12 changed files
with
154 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2023-10-14 | ||
|
||
### Added | ||
|
||
- Initial implementation of the Murmur API. | ||
|
||
[unreleased]: https://github.com/ideal-lab5/murmur/compare/v0.1.0...HEAD | ||
[0.1.0]: https://github.com/ideal-lab5/murmur/releases/tag/v0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
# Murmur | ||
|
||
Murmur is an air-gapped keyless crypto wallet protocol that runs on the [Ideal Network](). This repository contains the core implementation of the murmur protocol and a CLI to allow fully non-custodial usage of murmur wallets. | ||
Murmur is an air-gapped keyless crypto wallet protocol that runs on the [Ideal Network](https://idealabs.network). This repository contains the core implementation of the murmur protocol and a CLI to allow fully non-custodial usage of murmur wallets. | ||
|
||
The murmur protocol enables **keyless account abstraction** capabilities for any chain bridged to the Ideal Network (alternatively, we can do this with drand). wallet is a special pure proxy that can only be executed when presented with proof that the origin knows a correct time-based OTP code. | ||
The murmur protocol enables **keyless account abstraction** capabilities for any chain bridged to the Ideal Network (alternatively, we can do this with drand). wallet is a special pure proxy that can only be executed when presented with proof that the origin knows a correct time-based OTP code. | ||
|
||
It is based on the [Hours of Horus](https://eprint.iacr.org/2021/715) protocol, which leverages timelock encryption and a secure OTP code generator to construct a keyless wallet scheme. Our scheme improves on this construction in several ways. | ||
It is based on the [Hours of Horus](https://eprint.iacr.org/2021/715) protocol, which leverages timelock encryption and a secure OTP code generator to construct a keyless wallet scheme. Our scheme improves on this construction in several ways. | ||
|
||
- We leverage the Ideal Network to instantiate practical timelock encryption, allowing the HoH scheme to be realized in the first place. | ||
- We use a Merkle mountain range in place of a Merkle tree, allowing for arbitrary numbers of OTP codes to be generated | ||
- JIT execution: Rather than relying on a commit-reveal scheme in order to use the wallet, our scheme uses a 'just-in-time' approach leveraging the Ideal Network's on-chain randomness, which provides the decryption key (i.e. BLS signature) necessary to verify proofs. | ||
- **Practical Timelock Encryption**: We leverage the Ideal Network to instantiate practical timelock encryption, allowing the HoH scheme to be realized in the first place. | ||
- **Merkle Mountain Range**: We use a Merkle mountain range in place of a Merkle tree, allowing for arbitrary numbers of OTP codes to be generated | ||
- **Just-in-Time Execution**: Rather than relying on a commit-reveal scheme in order to use the wallet, our scheme uses a 'just-in-time' approach leveraging the Ideal Network's on-chain randomness, which provides the decryption key (i.e. BLS signature) necessary to verify proofs. | ||
|
||
## Build | ||
|
||
``` | ||
To build the project, use the following command: | ||
|
||
```shell | ||
cargo build | ||
``` | ||
|
||
## Testing | ||
|
||
``` | ||
To run the tests, use the following command: | ||
|
||
```shell | ||
cargo test | ||
``` | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please open an issue or submit a pull request. | ||
|
||
## License | ||
|
||
This project is licensed under the Apache-2.0. See the [LICENSE](LICENSE) file for details. | ||
|
||
## Contact | ||
|
||
For any inquiries, please contact [Ideal Labs](https://idealabs.network). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,88 @@ | ||
# murmur-lib | ||
# Murmur Lib | ||
|
||
An implementation of the Murmur protocol and corresponding CLI. This implements the Murmur protocol for usage with the Ideal network's randomness beacon. Specifically, it uses [TinyBLS377](https://docs.rs/w3f-bls/latest/w3f_bls/engine/type.TinyBLS377.html) and constructs basic identities which are deterministic based on block number. | ||
|
||
## Setup | ||
|
||
To setup a dev environment: | ||
- run a local [IDN solochain node](https://github.com/ideal-lab5/etf) | ||
- [generate chain metadata](#generate-metadata) | ||
|
||
1. Run a local [IDN solochain node](https://github.com/ideal-lab5/etf) | ||
2. [Generate chain metadata](#generate-metadata) | ||
|
||
### Build | ||
|
||
`cargo build` | ||
To build the project, use the following command: | ||
|
||
```shell | ||
cargo build | ||
``` | ||
|
||
### CLI Usage | ||
|
||
##### Create a wallet | ||
|
||
``` shell | ||
# generate a wallet valid for the next 1000 blocks | ||
To generate a wallet valid for the next 1000 blocks, use: | ||
|
||
```shell | ||
./target/debug/murmur new --name test --seed my_secret_key --validity 100 | ||
``` | ||
|
||
##### Execute a balance transfer | ||
|
||
``` shell | ||
# send a balance transfer | ||
To send a balance transfer, use: | ||
|
||
```shell | ||
./target/debug/murmur execute --name test --seed my_secret_key --to CuqfkE3QieYPAWPpwiygDufmyrKecDcVCF7PN1psaLEn8yr --amount 100_000_000 | ||
``` | ||
|
||
## Test | ||
|
||
`cargo test` | ||
To run the tests, use the following command: | ||
|
||
```shell | ||
cargo test | ||
``` | ||
|
||
## Generate Metadata | ||
|
||
``` shell | ||
# clone and build the node | ||
To run the tests, use the following command: | ||
|
||
1. Clone and build the node: | ||
|
||
```shell | ||
git clone [email protected]:ideal-lab5/etf.git | ||
cd etf | ||
cargo +stable build | ||
# run a local node | ||
``` | ||
|
||
2. Run a local node: | ||
|
||
```shell | ||
./target/debug/node --tmp --dev --alice --unsafe-rpc-external --rpc-cors all | ||
# use subxt to prepare metadata | ||
``` | ||
|
||
3. Prepare metadata using `subxt`: | ||
|
||
```shel | ||
cd /path/to/otp-wallet/ | ||
mkdir artifacts | ||
cargo install subxt-cli | ||
# Download and save all of the metadata: | ||
``` | ||
|
||
4. Download and save all of the metadata: | ||
|
||
```shell | ||
subxt metadata > ./artifacts/metadata.scale | ||
``` | ||
``` | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please open an issue or submit a pull request. | ||
|
||
## License | ||
|
||
This project is licensed under the Apache-2.0. See the [LICENSE](../LICENSE) file for details. | ||
|
||
## Contact | ||
|
||
For any inquiries, please contact [Ideal Labs](https://idealabs.network). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# Murmur test utilities | ||
|
||
Various test utilities for murmur. | ||
Various test utilities for murmur. | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please open an issue or submit a pull request. | ||
|
||
## License | ||
|
||
This project is licensed under the Apache-2.0. See the [LICENSE](../LICENSE) file for details. | ||
|
||
## Contact | ||
|
||
For any inquiries, please contact [Ideal Labs](https://idealabs.network). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters