Summary
Four API surface changes for the post-W3F milestone.
1. Rename signWithLegacyAccount → signWithAccount
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:
- Allows any two accounts to prove common control (i.e. that the same entity controls both).
- 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.
Summary
Four API surface changes for the post-W3F milestone.
1. Rename
signWithLegacyAccount→signWithAccountsignWithAccountaccepts anyAccountIdthat 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
getPrimaryDotNsNameReturns 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 viasignWithAccount.3. Introduce a certifications system
A generalisation of the proof-of-control flow currently implemented in the Playground. The certifications system:
4. Move freebie claim account IDs to product keys
Freebie claim account IDs should live under product keys rather than their current location.