forked from LedgerHQ/app-recovery-check
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SSKR generate option to app menu
- Loading branch information
Showing
25 changed files
with
690 additions
and
265 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
name: Create Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['Compilation & tests'] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
create_release: | ||
name: Create Release | ||
if: github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: Set VERSION variable from tag | ||
run: | | ||
HEAD_BRANCH=${{ github.event.workflow_run.head_branch }} | ||
VERSION_NUMBER=${HEAD_BRANCH#v} | ||
echo "VERSION_NUMBER=${VERSION_NUMBER}" >> ${GITHUB_ENV} | ||
echo "VERSION_NAME=${HEAD_BRANCH//./_}" >> ${GITHUB_ENV} | ||
- name: Download app binaries | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
name: apps | ||
path: ./bin/ | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
workflow: ci-workflow.yml | ||
workflow_conclusion: success | ||
skip_unpack: true | ||
|
||
- name: Rename app binaries | ||
run: ls -la ./bin/ && sudo mv ./bin/apps.zip ./bin/apps.${VERSION_NAME}.zip && ls -la ./bin/ | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Sharded Secret Key Reconstruction (SSKR) Check application for Ledger - Release ${{ env.VERSION_NUMBER }} | ||
artifacts: ./bin/*.zip | ||
artifactContentType: application/zip | ||
bodyFile: CHANGELOG.md | ||
tag: ${{ github.event.workflow_run.head_branch }} | ||
makeLatest: true | ||
allowUpdates: true |
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,20 @@ | ||
# Ghange log | ||
|
||
## [1.0.1] - 2023-03-21 | ||
|
||
### Added | ||
- Clone app-recovery-check and rename to app-sskr-check | ||
- Add SSKR (bc-sskr and bc-shamir) to app-sskr-check | ||
- Generate SSKR shares from BIP39 mnemonic phrase | ||
- Write BIP39 to SSKR functionality | ||
- Add SSKR flow to the Check BIP39 menu | ||
- Test with 12-word BIP39 phrases | ||
- Test with 18-word BIP39 phrases | ||
- Test with 24-word BIP39 phrases | ||
- Test on nanos | ||
- Test on nanosp | ||
- Test on nano | ||
|
||
### Changed | ||
|
||
### Fixed |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# app-sskr-check TODO list | ||
|
||
### Todo | ||
|
||
- [ ] Add Ledger Stax to list of devices app works on | ||
- [ ] Fix issue with using 'cx_crc32_hw()' function in 'onboarding_seed_sskr.c' when testing with Speculos | ||
- [ ] Currently hardcoded to use a k-of-n threshold of 2-of-3. Add flow to set threshold values | ||
- [ ] Save memory by setting the SSKR word buffer (G_bolos_ux_context.sskr_words_buffer) to a sensible size. Maybe just store SSKR Bytewords as shorter two letter minimal Bytewords rather than a 4 letter Byteword plus spaace for each share. Convert minimal ByteWords back to four letter Bytewords just prior to display. | ||
|
||
### In Progress | ||
|
||
- [ ] Generate BIP39 mnemonic phrases from SSKR shares | ||
- [ ] Write SSKR to BIP39 functionality | ||
- [ ] Add flow to the Check SSKR menu | ||
- [ ] Test with 29-word SSKR shares | ||
- [ ] Test with 38-word SSKR shares | ||
- [ ] Test with 46-word SSKR shares | ||
- [ ] Test on nanos | ||
- [ ] Test on nanosp | ||
- [ ] Test on nanox | ||
|
||
### Done ✓ | ||
|
||
- [x] Clone app-recovery-check and rename to app-sskr-check | ||
- [x] Add SSKR (bc-sskr and bc-shamir) to app-sskr-check | ||
- [x] Generate SSKR shares from BIP39 mnemonic phrase | ||
- [x] Write BIP39 to SSKR functionality | ||
- [x] Add SSKR flow to the Check BIP39 menu | ||
- [x] Test with 12-word BIP39 phrases | ||
- [x] Test with 18-word BIP39 phrases | ||
- [x] Test with 24-word BIP39 phrases | ||
- [x] Test on nanos | ||
- [x] Test on nanosp | ||
- [x] Test on nanox |
File renamed without changes
File renamed without changes
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.