Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statement that reads an arbitrary file and merges the content with the input already read by restroom-mw core #143

Open
andrea-dintino opened this issue Apr 6, 2022 · 0 comments
Assignees

Comments

@andrea-dintino
Copy link
Member

A VM-let will need to sign output and possible use ZKP. Each VM-let will have its own keyring and set of credentials: this data needs to be static and needs to be consumed by different Zencode scripts. Since for each script.zen restroom-mw will load the script.keys, we need to introduce a third input channel, specifically for the keys and credentials.

Therefore we need a statement, implemented in the files middleware, that reads an arbitrary file and merges it with the rest of the input. In case of namespace conflicts, the statement should overwrite the existing data (specifically the keys:{} object). For security reasons, it's desirable to have the file name inline, with an extension different from .keys (so restroom-mw core will never read it)

The statement could be:

GIven I read the the content of './keyring.json'

@andrea-dintino andrea-dintino assigned puria and albertolerda and unassigned puria Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants