Skip to content

docs(user): how to perform decryption in webapps on localhost? #1027

@enitrat

Description

@enitrat

Category

  • docs(user) — user-facing content: guides, tutorials, concept explanations, etc.
  • docs(api) — interfaces: contracts, SDKs, plugin APIs, etc.
  • docs(code) — code examples, templates, scripts, tests, etc.
  • docs(misc) — structure, navigation, styling, feedback, housekeeping, etc.

Context / Background

It's not clearly mentioned how to perform decryption in a web application that is not running inside the HardhatRuntimeEnvironment.

The only workaround i've found for now is to spawn a webserver that internally uses CLI commands to run hardhat tasks that run the encryption/decryption, and return the stdout to the webserver, which returns it to the calling website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions