Skip to content

Gate legacy account names on identity disclosure #266

Description

@pgherveou

Summary

account.get_legacy_accounts currently returns the derived legacy public key and also exposes lite_username as the account display name without checking IdentityDisclosure.

Proposed fix

Keep returning the legacy public key for compatibility, but set name: None unless identity_disclosure_authorization() returns Authorized. If the disclosure check fails due to storage/platform error, return HostFailure.

Tests

Add coverage for denied/not-determined hiding lite_username, authorized preserving it, and platform/storage errors surfacing as HostFailure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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