Skip to content

Commit

Permalink
Changed Shamir interpolate function to use cx_bn_gf2_n_mul() syscalls
Browse files Browse the repository at this point in the history
  • Loading branch information
aido committed Mar 2, 2024
1 parent 4c4f5ed commit 8f3bc62
Show file tree
Hide file tree
Showing 21 changed files with 3,187 additions and 520 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Change log

## [1.6.2] - 2024-01-30
## [1.7.0] - 2024-03-02
### Added
-

### Changed
- Changed Shamir interpolate function to use `cx_bn_gf2_n_mul()` syscalls
- Changed some function names to be more descriptive

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ all: default

APPNAME = "Seed Tool"
APPVERSION_M = 1
APPVERSION_N = 6
APPVERSION_P = 2
APPVERSION_N = 7
APPVERSION_P = 0
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"

APP_LOAD_PARAMS = --appFlags 0x10 $(COMMON_LOAD_PARAMS) --curve secp256k1 --path ""
Expand Down
3 changes: 1 addition & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

- [ ] Update automated function tests to test on nanox and nanosp
- [ ] There is just enough memory available on Nano S to hold the phrases for 10 shares. Maybe just store SSKR Bytewords as shorter two letter minimal Bytewords rather than a 4 letter Byteword plus space for each share. Convert minimal ByteWords back to four letter Bytewords just prior to display.
- [ ] If/when the `cx_bn_gf2_n_mul()` syscall is available on Ledger Nano S change all Galois Field functionality to use syscalls.
- See [gf_syscalls](https://github.com/aido/app-seed-tool/tree/gf_syscalls) branch of repo.

### In Progress

Expand All @@ -18,6 +16,7 @@

### Done ✓

- [x] Changed Shamir interpolate function to use `cx_bn_gf2_n_mul()` syscalls
- [x] Remove all Variable Length Arrays
- [x] Save memory by setting the SSKR word buffer (G_bolos_ux_context.sskr_words_buffer) to a sensible size
- [x] Add unit tests
Expand Down
295 changes: 0 additions & 295 deletions src/bc-sskr/bc-shamir/hazmat.c

This file was deleted.

Loading

0 comments on commit 8f3bc62

Please sign in to comment.