Skip to content

Commit

Permalink
Merge pull request #3 from tangle-network/keygen
Browse files Browse the repository at this point in the history
feat: WSTS keygen, signing, and tests
  • Loading branch information
tbraun96 authored Dec 11, 2024
2 parents 811413d + 30c8a51 commit d9d5627
Show file tree
Hide file tree
Showing 21 changed files with 643 additions and 540 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,10 @@ jobs:
with:
cache-on-failure: "true"

- uses: taiki-e/install-action@v2
with:
tool: nextest

- name: Forge build
run: forge update && forge build

- uses: taiki-e/github-actions/free-device-space@main

- name: Download Tangle Manual Sealing
run: |
wget https://github.com/tangle-network/tangle/releases/download/v1.2.3/tangle-testnet-manual-seal-linux-amd64
chmod +x tangle-testnet-manual-seal-linux-amd64
- name: tests
run: TANGLE_NODE=$(pwd)/tangle-testnet-manual-seal-linux-amd64 cargo nextest run
run: cargo test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by Cargo
/target/
dependencies

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ thiserror = "2.0.3"
itertools = "0.13.0"
rand = "0.8.5"
parking_lot = { version = "0.12.3", features = ["serde"]}
p256k1 = "5.4"
frost-taproot = { git = "https://github.com/webb-tools/tangle.git", branch = "main", default-features = false}

# MPC specific deps
wsts = "3.0.0"
Expand Down
2 changes: 0 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
fn main() {
println!("cargo:rerun-if-changed=src/cli");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=src/main.rs");
println!("cargo:rerun-if-changed=src/*");
blueprint_metadata::generate_json();
}
18 changes: 0 additions & 18 deletions config

This file was deleted.

3 changes: 2 additions & 1 deletion contracts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ out/
docs/

# Dotenv file
.env
.env
./lib
72 changes: 0 additions & 72 deletions contracts/src/BlsBlueprint.sol

This file was deleted.

11 changes: 11 additions & 0 deletions contracts/src/WstsBlueprint.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-License-Identifier: UNLICENSE
pragma solidity >=0.8.13;

import "dependencies/tnt-core-0.1.0/src/BlueprintServiceManagerBase.sol";

/**
* @title WstsBlueprint
* @dev This contract is an example of a service blueprint that provides a single service.
* @dev For all supported hooks, check the `BlueprintServiceManagerBase` contract.
*/
contract WstsBlueprint is BlueprintServiceManagerBase {}
4 changes: 3 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ out = "contracts/out"
script = "contracts/script"
cache_path = "contracts/cache"
broadcast = "contracts/broadcast"
libs = ["contracts/lib", "dependencies"]
libs = ["dependencies"]
auto_detect_remappings = true

[dependencies]
forge-std = "1.9.4"
tnt-core = "0.1.0"

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
Loading

0 comments on commit d9d5627

Please sign in to comment.