rob thijssen c7c23b7958 feat!: ui-keyring holds post-quantum keys only
Follows quantus/common#6, which removed ed25519, sr25519, ecdsa and ethereum
from the keyring (forks at 14.0.3-quantus.3).

- restoreAccount now goes through keyring.createFromJson instead of building
  the pair itself. A restored backup therefore gets the same refusal as every
  other entry point: a polkadot{.js} export of an sr25519 or ed25519 account is
  told "<type> keys are not quantum-safe and cannot be held here", not decoded.
- Version-0 JSON, which does not record its key type and so cannot be ML-DSA,
  is refused. Upstream guessed ed25519.
- isEthereum is always false; it's kept so callers written against upstream
  still read a boolean.
- loadAll already skips, with a warning, any stored account the keyring
  refuses, so a profile holding an old classical account still starts.

The spec that pinned sr25519 restore as unchanged is replaced by the two
refusals. ui-keyring 3.16.7-quantus.3, on the quantus.3 forks. yarn test 47
passing; lint clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012uDUodEcRbBwNRi3UCmw8f
2026-09-16 21:13:01 +03:00
2024-10-23 03:47:43 +03:00
2020-10-23 10:18:44 +02:00
2018-12-05 11:35:28 +01:00
2022-07-12 07:56:03 +03:00
2022-01-13 10:07:31 +02:00
2018-12-05 11:35:28 +01:00
2021-06-08 18:05:39 +03:00
2026-03-13 15:56:35 +02:00
2026-03-26 21:22:47 +02:00
2019-02-28 17:24:21 +01:00
2026-03-26 19:24:07 +00:00
2026-03-13 15:56:35 +02:00
2018-12-05 11:35:28 +01:00
2026-03-13 15:56:35 +02:00

@polkadot/ui

Basic browser and framework agnostic UI components for creating apps using the polkadot{.js} libraries

overview

The following UI components are currently available -

Additionally some shared libraries, that are not dependent on any framework -

  • ui-keyring A browser-specific wrapper around the base @polkadot/keyring library
  • ui-settings A browser local storage wrapper for app settings & configuration
  • ui-shared Shared logic that is used across UI components, e.g. for icon generation
Description
Fork of polkadot-js/ui. @polkadot/ui-keyring reconstructs a pair's public key from its address, which a Quantus account id (a one-way Poseidon2 hash of the public key) cannot supply — account restore has to read the key from the encrypted blob instead.
Readme Apache-2.0 33 MiB
Languages
TypeScript 98.4%
JavaScript 1%
HTML 0.6%