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

iotaledger / iota / 16281819432
61%

Build:
DEFAULT BRANCH: develop
Ran 15 Jul 2025 03:53AM UTC
Jobs 1
Files 1328
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

14 Jul 2025 04:02PM UTC coverage: 65.639% (+0.002%) from 65.637%
16281819432

push

github

web-flow
feat(keys)!: introduce a new keystore v2 format and migrate from the current one while keeping a backup of the files (#7704)

# Description of change

* Introduce a new keystore v2 format. If a keystore v1 file
(`iota.keystore` + `iota.aliases`) is found then they are automatically
migrated while keeping a copy of the old data named as
(`iota.keystore.migrated` + `iota.aliases.migrated`).

```json
{
  "version": 2,
  "keys": [
    {
      "alias": "xenodochial-amethyst",
      "address": "0x6a0e268bf793f1d9c21f7f8faee6f4b68",
      "key": {
        "type": "external",
        "value": {
          "source": "ledger",
          "derivation_path": "m/44'/4218'/0'/0'/0'",
          "public_key_base64": "AA2itppp6zFjp9f6onzcTSyDbp8KymT2gCpQAHj7KL+o"
        }
      }
    },
    {
      "alias": "zealous-agates",
      "address": "0xaa0ebe1d294429ac738d69861dc9d49ce",
      "key": {
        "type": "external",
        "value": {
          "source": "some_kms",
          "public_key_base64": "AMkjtEDVFIxuAIbTTUHxCU0zVxujbL6A5ovdB/9rRxLz"
        }
      }
    },
    {
      "alias": "condescending-jet",
      "address": "0xfeebd0a88da361c317a6f0419dee0a699",
      "key": {
        "type": "key_pair",
        "value": "iotaprivkey1qpkfvwk4re9hd04c900hy4d2h6qtyqks0j58gr877xs6668q6czg2vt6ysm"
      }
    }
  ]
}
```

* The new keystore v2 supports adding keys from external sources, where
only the public key is added to the store and an optional bip32
derivation path. This allows the CLI to store references to keys managed
from e.g. Ledger hardware wallets.

## Links to any relevant issues

Fixes #5849

## How the change has been tested

- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have c... (continued)

294 of 373 new or added lines in 11 files covered. (78.82%)

178 existing lines in 20 files now uncovered.

229092 of 349018 relevant lines covered (65.64%)

2326543.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
61
83.44
-5.02% crates/iota-keys/src/keystore.rs
12
33.33
1.02% crates/iota/src/keytool.rs
2
61.22
-0.0% crates/iota/src/client_commands.rs
2
51.99
0.07% crates/iota/src/validator_commands.rs
1
0.0
0.0% crates/iota-benchmark/src/util.rs
1
0.0
0.0% crates/iota-rpc-loadgen/src/main.rs

Coverage Regressions

Lines Coverage ∆ File
55
94.66
0.94% crates/iota-protocol-config/src/lib.rs
27
74.76
-0.78% crates/test-cluster/src/lib.rs
15
72.65
-1.53% crates/iota-core/src/authority/authority_store_pruner.rs
14
92.84
-1.59% crates/iota-core/src/consensus_adapter.rs
12
89.23
0.0% crates/iota-test-transaction-builder/src/lib.rs
7
89.23
-5.38% crates/iota-package-management/src/lib.rs
7
47.06
-1.1% crates/iota-sdk/src/apis/read.rs
6
73.53
-17.65% crates/iota-genesis-builder/src/stardust/types/output_header.rs
5
83.44
-5.02% crates/iota-keys/src/keystore.rs
4
72.15
-0.3% crates/iota-core/src/authority/authority_store.rs
4
79.21
-1.05% crates/iota-core/src/test_utils.rs
4
65.95
-1.43% crates/iota-types/src/messages_consensus.rs
3
80.3
-4.55% crates/iota-core/src/traffic_controller/nodefw_test_server.rs
3
90.2
-0.21% crates/iota-genesis-builder/src/lib.rs
3
47.83
0.0% crates/iota-genesis-builder/src/stardust/types/snapshot.rs
3
81.58
-0.18% crates/iota-node/src/lib.rs
3
84.9
2.04% crates/iota-sdk/src/wallet_context.rs
1
96.0
-4.0% crates/iota-keys/src/random_names.rs
1
33.33
1.02% crates/iota/src/keytool.rs
1
76.46
0.53% crates/iota-types/src/crypto.rs
Jobs
ID Job ID Ran Files Coverage
1 nextest+simtest - 16281819432.1 15 Jul 2025 03:53AM UTC 1330
65.62
GitHub Action Run
Source Files on build 16281819432
  • Tree
  • List 1328
  • Changed 43
  • Source Changed 11
  • Coverage Changed 41
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16281819432
  • 75f5ebd5 on github
  • Prev Build on develop (#16255854355)
  • Next Build on develop (#16308159858)
  • Delete
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