Skip to content

Post-W3F API changes: signWithAccount, getPrimaryDotNsName, certifications, product keys #222

Description

@filvecchiato

Summary

Four API surface changes for the post-W3F milestone.

1. Rename signWithLegacyAccountsignWithAccount

signWithAccount accepts any AccountId that the UA can attempt to sign with and that has been returned by TrUAPI into the current product on the current device. This generalises the legacy-only signing surface to cover all account types.

2. Introduce getPrimaryDotNsName

Returns a (DotNsNode, AccountId) pair — the product's primary dotNS node (a path into the namespace) and the controlling account. The controlling account should generally be signable via signWithAccount.

3. Introduce a certifications system

A generalisation of the proof-of-control flow currently implemented in the Playground. The certifications system:

  1. Allows any two accounts to prove common control (i.e. that the same entity controls both).
  2. Supports both public certifications (verifiable by anyone) and private certifications (verifiable only by a designated audience).

4. Move freebie claim account IDs to product keys

Freebie claim account IDs should live under product keys rather than their current location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions