Skip to content

ethereum provider, updated crypto suite #31

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

ethereum provider, updated crypto suite #31

wants to merge 13 commits into from

Conversation

dckc
Copy link
Collaborator

@dckc dckc commented Jun 7, 2021

fixes #26
fixes #28
fixes #9

unfortunately, it breaks critical functionality (#30) and adds a performance bug (#29).

@Bill-Keuntje I'd like to assign this to you for review, but it looks like I need you to accept the invitation first.
cc @jimscarver

dckc added 13 commits June 6, 2021 23:18
 - never mind emacs config
 - lint:types: typescript devdependencies
   - .flowconfg -> jsconfig.json
 - lint:eslint: airbnb / Agoric style
   - add chrome global
 - update webpack devDependencies
 - don't import RHOCore; it's no longer available
 - crib from metamask:
   - adopt injectScript() DOM manipulation
     - use "run_at": "document_start" in manifest
     - refactor inject() to take string form of function
   - use Record<string, unknown> for type of mutable window
 - factor install() out of runInPage()
 - provide autoRefreshOnNetworkChange setter on window.ethereum
 - clean up logging
 - factor out inPage.js
 - integrate sigTool with ethereum provider (WIP)
 - start with 027aca3deb4a Fri Apr 12 11:35:13 2019 -0500
 - style: migrate secretStorage.js from flow to ts/jsdoc

fix: scrypt cost parameter (n) was unusually large

1024 is what I found in one of my key files and in some metamask
source code. 262144 came from a test vector.

https://github.com/juanelas/scrypt-pbkdf shows 5 to 28 seconds
for 2**18=262144
 - dependencies: crypto, ethereumjs, script, uuid-random
   - stream???
   - webpack config
 - ethProvider: provide ethAddr
 - nacl -> crypto
 - sigTool
   - don't depend on messageBus
   - more flow -> @ts-check (jsdoc + typescript)
   - use secretStore
 - toward postMessage authentication: check event.source
   (ew. ACLs don't.)
 - use q/a sequence numbers to filter irrelevant messages
 - removeEventListener after round trip is complete
 - handle errors; log unexpected conditions
@Bill-Kunj Bill-Kunj self-assigned this Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants