Skip to content

RFC: Unified signWithAccount across product and legacy accounts #543

Description

@filvecchiato

Raised in: #222 · @filvecchiato

Description

signWithAccount accepts any AccountId the User Agent can attempt to sign with and that TrUAPI has returned into this product on this device. It replaces the *WithLegacyAccount variants of raw signing, payload signing and transaction construction.

Motivation

The signing surface is split by key provenance, so a product must know which kind of account it holds before it can pick a method.

Requirements

  • Accepts any AccountId the User Agent can attempt to sign with.
  • The account must have been returned by TrUAPI into the current product on the current device.
  • Covers raw signing, payload signing and transaction construction.

Tasks

  • RFC document body
  • Implementation — rust-core
  • Implementation — hosts
    • dotli
    • Desktop
    • iOS
    • Android
    • host-cli

Note: no RFC drafted yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions