Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Add possibility to add images/files as attributes in credentials #820

@schlagtim

Description

@schlagtim

As a user I would like to sign external files such as images, document files with the BPA and present them to other agents.
E.g. passport credential with image of holder

It might be sufficient to add only image file functionality first.

Suggestion:
Encode files in base64 string + MIME-type which can be used in an attribute.
This feature should be optionally turned on/off due to security reasons.

Backend needs to check byte-stream for file magical numbers (https://gist.github.com/leommoore/f9e57ba2aa4bf197ebc5).

  • Limit upload size
  • Handle MIME-type
  • Encode/decode

Frontend needs file upload (perhaps with image preview) for credential request and issue and preview in proof responses.

  • Image preview/upload component
  • File upload
  • File limits (file size, image size, MIME-type)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions