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

Encryption #5

Closed
svub opened this issue Oct 22, 2019 · 1 comment
Closed

Encryption #5

svub opened this issue Oct 22, 2019 · 1 comment
Assignees
Milestone

Comments

@svub
Copy link
Owner

svub commented Oct 22, 2019

Used by storage #4.

Parameters

  • private key - provided by shop backend
  • public key - a parameter of the shop Shop object #3

Actions:

  • encrypt order (needs public key)
  • decrypt order (needs private key)

Assumptions:

  • Ideally using web crypto to minimize external deps
  • performance irrelevant
@svub svub added this to To do in A minimal shop via automation Oct 22, 2019
@svub svub mentioned this issue Oct 22, 2019
@sectore sectore added this to the v1.0 milestone Oct 22, 2019
@svub svub modified the milestones: v1.0, v2.0 Oct 24, 2019
@svub
Copy link
Owner Author

svub commented Oct 24, 2019

Moved to v2 - will build a dummy so that we can see the prototype working and will add encryption next.

@svub svub self-assigned this Oct 28, 2019
@svub svub mentioned this issue Oct 28, 2019
@svub svub moved this from To do to In progress in A minimal shop Oct 28, 2019
@svub svub moved this from In progress to Review in progress in A minimal shop Oct 28, 2019
svub added a commit that referenced this issue Oct 31, 2019
A minimal shop setup page, task #6
Including task #5 encryption.

--

* rough draft

* Bit of code clean-up

* code clean-up + added open questions as todos

* experimenting with imports

* Could that replace the Array.includes polyfill?

* Did not manage to get the Shop class imported. How??? :/

* fix typo

* Completed task #5 while working on setup process

* adding pub/pri keys to encryption interface and storage

* satisfying linter

* adding methods for creating shop configuration

* trying to get the Shop class exported from TS to JS - not successful, using ugly hack

* old admin backend - untested to be worked on next

* super basic setup process with Nimiq Style - needs more love

* linting

* code clean-up

* more cleanup

* taking all backend-related methods from Shop to create Backend + use it in backend

* Fix exports

Webpack does not support ES6 module output, so only global assignments are possible.

* making keys optional (mostly for testing using dummy storage)
@svub svub moved this from Review in progress to Done in A minimal shop Nov 1, 2019
@svub svub closed this as completed Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants