Skip to content

Commit

Permalink
Merge pull request #53 from Manta-Network/bhgomes/update-to-new-sdk
Browse files Browse the repository at this point in the history
feat: move to new sdk, which requires legacy file locations
  • Loading branch information
tommyjk21 authored Feb 9, 2022
2 parents 2b0974c + 5b1ed9f commit 3f3f8a1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
fetch-depth: 1
lfs: true
- name: Move Proving Keys
run: mv ./sdk/zkp/* ui/src-tauri/
run: mv ./sdk/legacy/proving/* ui/src-tauri/
- name: Hack For Ubuntu Builds
run: cd ui/src-tauri; sed -i /icns/d tauri.conf.json
if: matrix.os_type == 'ubuntu'
Expand Down
12 changes: 0 additions & 12 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,5 @@ The version numbers in the following files must be updated:
EOF
prompt "Did you update the version numbers?"

cat << EOF
ZKP PROVING KEYS
================
Downloading the latest proving keys ...
EOF

# curl ...
# mv *.bin ui
cd ui
cargo tauri build

echo "release"

4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ impl Config {
/// Returns the path to the `PrivateTransfer` proving key.
#[inline]
pub fn private_transfer_proving_key_path(&self) -> PathBuf {
self.proving_key_path("transfer_pk.bin")
self.proving_key_path("private-transfer.dat")
}

/// Returns the path to the `Reclaim` proving key.
#[inline]
pub fn reclaim_proving_key_path(&self) -> PathBuf {
self.proving_key_path("reclaim_pk.bin")
self.proving_key_path("reclaim.dat")
}
}
4 changes: 2 additions & 2 deletions ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Binary Files
*.bin
# Data Files
*.dat
4 changes: 2 additions & 2 deletions ui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"icons/128x128@2x.png",
"icons/icon.ico"
],
"resources": ["*.bin"],
"resources": ["*.dat"],
"externalBin": [],
"copyright": "Copyright 2019-2022 Manta Network",
"category": "DeveloperTool",
Expand Down Expand Up @@ -86,4 +86,4 @@
"iconAsTemplate": true
}
}
}
}

0 comments on commit 3f3f8a1

Please sign in to comment.