Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.3.2 #550

Merged
merged 165 commits into from
Sep 9, 2024
Merged

v2.3.2 #550

merged 165 commits into from
Sep 9, 2024

Conversation

mjg-foundation
Copy link
Collaborator

No description provided.

jeandudey and others added 30 commits May 21, 2024 10:03
* .github/workflows/validate_and_build.yaml: Rename file to ...
* .github/workflows/build.yaml: ... this one and remove lint job.

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
* .github/actions/rust-toolchain/action.yml: Add vendored
dtolnay/rust-toolchain action.
* .reuse/dep5: Add dtolnay to dep5 as the copyright holder of
rust-toolchain action file.

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
* .github/workflows/lint.yaml: New action.

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
* .github/workflows/build.yaml: Remove setup-just action.

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
The Passport firmware code runs on a "single thread" so the warnings
don't apply here.

* extmod/foundation-rust/src/secp256k1.rs: Replace `&mut ...' with
`&mut *addr_of_mut!(...)'.
* extmod/foundation-rust/src/ur/decoder.rs: Ditto.
* extmod/foundation-rust/src/ur/encoder.rs: Ditto.
* extmod/foundation-rust/src/ur/mod.rs: Ditto.
* .github/workflows/dependabot.yaml: Move from here...
* .github/dependabot.yaml: ... to here.
For consistency.

* extmod/foundation-rust/include/foundation.h: Re-generate file.
* extmod/foundation-rust/src/secp256k1.rs
(foundation_secp256k1_schnorr_sign): Rename this ...
(foundation_secp256k1_sign_schnorr): ... to this.
* extmod/foundation/modfoundation-secp56k1.h
(mod_foundation_secp256k1_sign_schnorr): Update.
* extmod/foundation-rust/include/foundation.h: Re-generate file.
* extmod/foundation-rust/src/secp256k1.rs
(foundation_secp256k1_sign_ecdsa): New function.
* extmod/foundation/modfoundation-secp56k1.h
(mod_foundation_secp256k1_sign_ecdsa): New function.
(mod_foundation_secp256k1_sign_ecdsa_obj): New variable.
(mod_foundation_secp256k1_globals_table): Add MP_QSTR_sign_ecdsa.
* extmod/foundation/modfoundation-secp56k1.h
(mod_foundation_secp256k1_public_key_schnorr): New function.
(mod_foundation_secp256k1_public_key_schnorr_obj): New variable.
(mod_foundation_secp256k1_globals_table): Add MP_QSTR_public_key_schnorr.
* extmod/foundation-rust/include/foundation.h: Re-generate file.
* extmod/foundation-rust/src/secp256k1.rs
(secp256k1_public_key_schnorr): New function.
* ports/stm32/boards/Passport/modules/tasks/nostr_key_task.py
(nostr_key_task): Use secp256k1.public_key_schnorr instead of
nostr_pubkey_from_pk.
* ports/stm32/boards/Passport/modules/utils.py
(nostr_pubkey_from_pk): Remove function.
* ports/stm32/boards/Passport/modules/tasks/sign_psbt_task.py
(sign_psbt_task): Use foundation.secp256k1.sign_ecdsa.
* ports/stm32/boards/Passport/modules/utils.py
(sign_message_digest): Ditto.
* extmod/trezor-firmware/core/embed/extmod/modtrezorcrypto/modtrezorcrypto.c:
(modtrezorcrypto-secp256k1.h): Remove inclusion.
(mp_module_trezorcrypto_globals_table): Remove MP_QSTR_secp256k1.
* py/py.mk (PY_EXTMOD_O_BASENAME): Remove
extmod/trezor-firmware/crypto/shamir.o and
extmod/trezor-firmware/crypto/schnorr.o.
* extmod/trezor-firmware/core/embed/extmod/modtrezorcrypto/modtrezorcrypto.c
(FOUNDATION_ADDITIONS): Remove definition.
* py/py.mk (CFLAGS_MOD): Add -DFOUNDATION_ADDITIONS=1.
* extmod/trezor-firmware/crypto/bip32.c (get_curve_by_name): Disable
getting nist256p1 information to avoid linking.
* py/py.mk (PY_EXTMOD_O_BASENAME): Remove
extmod/trezor-firmware/crypto/nist256p1.o.
* extmod/trezor-firmware/crypto/bip32.c: Avoid using unused curves.
* extmod/trezor-firmware/crypto/hasher.c: Disable various hashes.
* extmod/trezor-firmware/crypto/hasher.h: Ditto.
* extmod/trezor-firmware/crypto/secp256k1.c: Remove unused curves.
* py/py.mk (PY_EXTMOD_O_BASENAME): Remove
extmod/trezor-firmware/crypto/groestl.o,
extmod/trezor-firmware/crypto/blake256.o,
extmod/trezor-firmware/crypto/blake2b.o and
extmod/trezor-firmware/crypto/blake2s.o.
* py/py.mk (CFLAGS_MOD): Add -DUSE_PRECOMPUTED_CP=0.
* extmod/foundation-rust/Cargo.toml (dependencies) <secp256k1>: Enable
lowmemory feature.
* extmod/foundation-rust/Cargo.lock: Update lockfile.
* extmod/foundation-rust/Cargo.toml (dependencies) <bitcoin_hashes>: New
dependency, enable small-hash.
* src/secp256k1.rs
(secp256k1_public_key_schnorr): Use Keypair instead of KeyPair.
(secp256k1_sign_ecdsa): Use Message::from_digest_slice.
…x-rust-compilation-issues

SFT-3656: Fix Rust compilation issues.
* simulator/Makefile
(CC_UNIX_TOP): Remove variable.
(up): Remove target.
(dfu): Ditto.
(tags): Ditto.
(tools): Ditto.
(setup): Ditto.

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
* ports/unix/main.c (mp_import_stat): Fix function signature.
* extmod/foundation-rust/Cargo.lock: Regenerate file.
* extmod/foundation-rust/Cargo.toml (dependencies)
<foundation-ur>: Update to 0.2.
<foundation-urtypes>: Update to 0.3.
<minicbor>: Update to 0.24.
…move-unused-targets-on-simulator

SFT-3648: Remove unused targets on simulator.
…date-foundation-urtypes

SFT-3632: Update foundation-urtypes.
mjg-foundation and others added 26 commits August 14, 2024 10:06
…ed-sticking

SFT-3980 temporary seeds sticking
…kup-temporary-seeds

SFT-3982: dont autobackup temporary seeds
…psbt-error-messaging

SFT-4103: fix taproot psbt error messaging
…related-settings-device-settings

SFT-4095: make update related settings device settings
…icy-clarification

SFT-4094: multisig policy clarification
…ig-policy-on-device-reset

SFT-4088: erased multisig policy on device reset
…menu-icons-and-messages

SFT-4120: standardized menu icons and messages
@mjg-foundation mjg-foundation merged commit f108783 into main Sep 9, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants