• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 15641608958
62%

Build:
DEFAULT BRANCH: development
Ran 13 Jun 2025 10:55PM UTC
Jobs 1
Files 690
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jun 2025 06:36PM UTC coverage: 71.528% (-0.5%) from 72.049%
15641608958

push

github

web-flow
feat: integrated address support for Ledger (#7198)

## Description
This PR implements integrated address support for the
minotari_ledger_wallet application, allowing the Ledger hardware wallet
to handle addresses with embedded payment IDs. The implementation
supports variable-sized addresses from 67 bytes (standard dual
addresses) up to 323 bytes (with maximum 256-byte payment IDs).

### Key Changes:
- Updated address size constants and validation to support
variable-length addresses
- Modified address parsing functions to accept `&[u8]` instead of
fixed-size arrays
- Added payment ID extraction utility functions
- Enhanced transaction confirmation UI to display payment ID information
- Updated protocol data structures to include address size prefixes
- Added comprehensive test coverage and documentation

## Motivation and Context
Integrated addresses enable users to embed payment identifiers directly
within Tari addresses, improving payment tracking and reconciliation.
This feature is particularly important for exchanges, merchants, and
other services that need to associate payments with specific orders or
accounts. The Ledger wallet previously only supported fixed 67-byte dual
addresses, limiting its utility for these use cases.

## How Has This Been Tested?
- All existing unit tests pass without modification
- Added comprehensive new test suite covering:
  - Standard dual address compatibility (67 bytes)
  - Integrated addresses with various payment ID sizes
  - Boundary condition testing (min/max sizes)
  - Invalid address size rejection
  - Payment ID extraction and validation
- Compilation verified with `cargo check` and `cargo clippy`
- Both common and comms modules tested successfully

## What process can a PR reviewer use to test or verify this change?
1. **Compilation Check**: Run `cargo check` in
`applications/minotari_ledger_wallet/` to verify no compilation errors
2. **Unit Tests**: Run `cargo test` in both `common/` and `comms/`
subdire... (continued)

97 of 118 new or added lines in 3 files covered. (82.2%)

643 existing lines in 27 files now uncovered.

81159 of 113465 relevant lines covered (71.53%)

564889.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.33
18.95% applications/minotari_ledger_wallet/common/src/utils.rs
20
0.0
0.0% applications/minotari_ledger_wallet/comms/src/accessor_methods.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.48
0.0% base_layer/core/src/chain_storage/lmdb_db/validator_node_store.rs
1
82.98
-2.13% base_layer/core/src/proof_of_work/sha3x_pow.rs
1
75.25
0.0% base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
1
80.25
-0.25% comms/core/src/connection_manager/peer_connection.rs
2
99.68
-0.32% base_layer/core/src/transactions/transaction_components/test.rs
3
61.36
-6.82% base_layer/core/src/blocks/historical_block.rs
3
96.77
-0.37% base_layer/core/src/consensus/consensus_constants.rs
3
86.84
-7.89% base_layer/core/src/transactions/transaction_components/side_chain/validator_node_signature.rs
3
83.98
-0.97% base_layer/core/src/transactions/transaction_key_manager/storage/sqlite_db/mod.rs
3
42.86
-4.29% base_layer/core/src/validation/mocks.rs
4
54.32
-1.44% base_layer/core/src/chain_storage/db_transaction.rs
4
88.89
-4.44% base_layer/core/src/test_helpers/block_spec.rs
4
83.68
-0.04% base_layer/wallet/src/transaction_service/storage/sqlite_db.rs
5
0.0
-27.78% base_layer/core/src/base_node/proto/rpc.rs
5
76.81
-7.25% base_layer/core/src/consensus/chain_strength_comparer.rs
5
74.06
-0.32% base_layer/wallet/src/output_manager_service/storage/sqlite_db/mod.rs
8
6.25
-50.0% base_layer/core/src/transactions/transaction_components/side_chain/sidechain_feature.rs
11
57.16
-1.43% comms/core/src/connectivity/manager.rs
13
78.47
-0.52% base_layer/core/src/test_helpers/blockchain.rs
15
55.17
-10.34% base_layer/core/src/transactions/transaction_components/output_features.rs
17
63.24
-25.0% base_layer/core/src/transactions/transaction_components/side_chain/validator_node_registration.rs
22
75.0
-25.0% base_layer/core/src/base_node/sync/rpc/tests.rs
22
66.49
-5.95% base_layer/core/src/chain_storage/lmdb_db/lmdb.rs
23
8.33
-31.94% base_layer/core/src/chain_storage/block_add_result.rs
64
19.28
-15.42% base_layer/core/src/base_node/sync/rpc/service.rs
117
62.6
-4.58% base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
283
53.09
-10.23% base_layer/core/src/chain_storage/blockchain_database.rs
Jobs
ID Job ID Ran Files Coverage
1 15641608958.1 13 Jun 2025 10:55PM UTC 690
71.53
GitHub Action Run
Source Files on build 15641608958
  • Tree
  • List 690
  • Changed 36
  • Source Changed 3
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15641608958
  • 7ab0cd5f on github
  • Prev Build on development (#15613133816)
  • Next Build on development (#15705904978)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc