1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00
Commit Graph

66 Commits

Author SHA1 Message Date
Roman Zeyde
3d356b25ab fix(rust/trezor-client): update sign_message example
The existing code seems to fail with Model T 2.6.0:

```
2023-11-25T15:52:06.035004Z TRACE trezor_client::client: Sending MessageType_SignMessage msg: SignMessage { address_n: [2147483648, 2147483648, 2147483649], message: Some([114, 101, 103, 101, 108, 32, 104, 101, 116]), coin_name: Some("Testnet"), script_type: Some(SPENDADDRESS), no_script_type: None, chunkify: None, special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }
2023-11-25T15:52:06.413333Z DEBUG trezor_client::client: Received failure: Failure { code: Some(Failure_DataError), message: Some("Forbidden key path"), special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }
thread 'main' panicked at examples/sign_message.rs:10:49:
called `Result::unwrap()` on an `Err` value: FailureResponse(Failure { code: Some(Failure_DataError), message: Some("Forbidden key path"), special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } })
```

Also, use `handle_interaction` from `trezor_client::client::common` to
simplify the example.
2023-11-28 09:55:39 +01:00
DaniPopes
dde158395e chore: re-generate bindings 2023-11-27 11:19:48 +01:00
DaniPopes
04bf769b57 feat: update dependencies, fix breaking changes 2023-11-27 11:19:48 +01:00
dependabot[bot]
61369dca1f build(deps): bump rustix from 0.38.14 to 0.38.19 in /rust/trezor-client
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.14 to 0.38.19.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.14...v0.38.19)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 13:32:52 +01:00
cepetr
804874c7b9 feat(common): introduce interaction-less upgrade 2023-10-27 16:15:15 +02:00
Martin Milata
18d6b4d647 fix(core/ui): T2T1: update sign message layout 2023-10-26 18:29:52 +02:00
DaniPopes
6e93532b79
feat(rust): move trezor-client build script to separate crate (#3154) 2023-09-29 20:13:00 +02:00
Pavol Rusnak
58bb702498
docs(rust/trezor-client): update readme 2023-08-10 10:10:51 +02:00
Pavol Rusnak
c49009d7a5
feat(rust/trezor-client): bump version to 0.1.2 2023-08-10 10:03:41 +02:00
Piyush Kumar
9113be553b
feat(rust/trezor-client): add Sync and Send to Transport (#3202) 2023-08-10 09:59:15 +02:00
Pavol Rusnak
b4825f408a
feat(rust): use symlink for trezor-client/protob
to satisfy cargo publish --dry-run

it seems there is something smart going on and the symlink is expanded
to file copies during the build

[no changelog]
2023-07-12 15:47:43 +02:00
Pavol Rusnak
880e012e5c
feat(rust): update trezor-client crate metadata + run cargo build (#3139)
[no changelog]
2023-07-12 14:30:22 +02:00
wszdexdrf
8c0e904b43 feat(rust): update trezor-client crate metadata 2023-07-12 11:15:07 +02:00
wszdexdrf
69bea5cff4 docs(rust): fix README 2023-07-11 13:50:33 +02:00
wszdexdrf
4f93b187de feat: add rust build script for trezor-client 2023-07-11 13:50:33 +02:00
wszdexdrf
07ba960ab4 feat(rust): add trezor-client crate 2023-07-11 13:50:33 +02:00