Skip to content

ethereum provider, updated crypto suite#31

Open
dckc wants to merge 13 commits into
masterfrom
eth-provider
Open

ethereum provider, updated crypto suite#31
dckc wants to merge 13 commits into
masterfrom
eth-provider

Conversation

@dckc

@dckc dckc commented Jun 7, 2021

Copy link
Copy Markdown
Collaborator

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

Development

Successfully merging this pull request may close these issues.

RSign uses ed25519 but RChain uses secp256k1 web3 integration / ethereum provider Make nonce sequential, not random

2 participants