Skip to content

Shared Keys should include the encryption key in the metadata #367

@akafredperry

Description

@akafredperry

Is your feature request related to a problem? Please describe.

Currently the Java SDK stores the encryption key for the sharedWith atSign as a separate key. This is incompatible with the Dart SDK as this expected the key to be in the metadata. And it also creates a potential failure window because of the ordering of the 2 updates.

Describe the solution you'd like

Update the Java SDK to match the dart behaviour, specifically...

  • The encryption key used for shared keys between two atsigns only need to be stored once, for the atsign that owns / is shareing the key
  • Shared keys need to include this key (encrypted with the sharedWith atsigns public encryption key) in the metadata of every key
  • The lookup for shared keys (shared by another) should expect the metadata to include the encryption key and behave accordingly

Describe alternatives you've considered

NA

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions