Coder Social home page Coder Social logo

eth-simple-keyring's Introduction

MetaMask Logo

Built With:

  • React
  • Gatsby
  • ❀️ from ConsenSys Digital Experiences Circle

πŸš€ Quick start

Ask @davidnguyen88 or @jlazoff for config files

  1. Start it up

    git clone [email protected]:MetaMask/website.git
    yarn
    yarn develop
  2. View site

    MetaMask is now running at http://localhost:8000!

    There is also a GraphQL API at http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

What's where?

Gatsby file structure documentation

.
β”œβ”€β”€ public/
β”œβ”€β”€ src/
    β”œβ”€β”€ components/
    β”œβ”€β”€ fonts/
    β”œβ”€β”€ fragments/
      β”œβ”€β”€GraphQL_Documentation.md
    β”œβ”€β”€ images/
      β”œβ”€β”€ icons/
      β”œβ”€β”€ social-icons/
      β”œβ”€β”€ metamask-logo.svg
      β”œβ”€β”€ ...
    β”œβ”€β”€ lib/
      β”œβ”€β”€ theme.js
    β”œβ”€β”€ pages/
      β”œβ”€β”€ index.js
      β”œβ”€β”€ about.js
      β”œβ”€β”€ ...
    β”œβ”€β”€ html.js
β”œβ”€β”€ gatsby-config.js
β”œβ”€β”€ .env
β”œβ”€β”€ GraphQL_Query_Documentation.md
β”œβ”€β”€ package.json
└── README.md

Key Files

gatsby-config.js

The main configuration file for a Gatsby site. This is where you can specify information about your site (metadata), site title ,and description, which Gatsby plugins we are using, etc. (Check out the config docs for more detail).

src/fragments/ GraphQL query fragments that create standard data requests across components

src/lib/theme.js Contains styling constants for font sizes and weights, device sizes for media queries, shadows, and colors.

public/

Automatically generated output of gatsby build process for production.

src/pages

Files within this directory are turned into routes with the name of the file (e.g. about.js becomes /about). Only files within /pages are allowed to make dynamic GraphQL queries which cascade data down to components.

src/html.js Entry file used by Gatsby for all rendered pages html template

eth-simple-keyring's People

Contributors

adonesky1 avatar bitpshr avatar botary avatar brad-decker avatar brunobar79 avatar danfinlay avatar danjm avatar dependabot[bot] avatar flyswatter avatar github-actions[bot] avatar greenkeeper[bot] avatar gudahtt avatar howardbraham avatar jeffanthony avatar jpuri avatar kumavis avatar legobeat avatar logvik avatar rekmarks avatar ryanml avatar ukstv avatar whymarrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eth-simple-keyring's Issues

problem using in react native, regarding dependencies

I have a problem using this package in react native env, with this error message

Unable to resolve module crypto

  71 | Object.defineProperty(exports, "__esModule", { value: true });
  72 | exports.thirdparty = exports.hdkey = void 0;
> 73 | var crypto = __importStar(require("crypto"));
     |                                    ^
  74 | var ethereumjs_util_1 = require("ethereumjs-util");
  75 | var scrypt_js_1 = require("scrypt-js");
  76 | var hdkey_1 = require("./hdkey");

ethereumjs-wallet dependency

we currently use ethereumjs-wallet to:

  • generate new keys
  • get address from private key

this is pretty easy to do without this wrapper library and all that it brings with it

Also the current ethereumjs-wallet includes an old version of aes-js which modifies Array.prototype. Latest aes-js does not have this problem.

Migrate to TypeScript

We want to migrate this package to TypeScript to reduce regressions and improve compatibility with our other TypeScript projects.

Remove ethereumjs-wallet dep

Dropping ethereumjs-wallet will remove the scrypt dependency that uses python to try to install some things, making it hard to install on windows 😿

can replace
https://github.com/MetaMask/eth-hd-keyring/blob/d812b9cbecd2a8b56c1edf801438a9c5ae26b922/index.js#L130-L131
with

const HDKey = require('hdkey')
HDKey.fromMasterSeed(seedBuffer).derive(path)

ethereumjs-wallet is just wrapping that
https://github.com/ethereumjs/ethereumjs-wallet/blob/master/hdkey.js#L35-L37

An in-range update of ethereumjs-util is breaking the build 🚨

Version 5.1.3 of ethereumjs-util was just published.

Branch Build failing 🚨
Dependency ethereumjs-util
Current Version 5.1.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

ethereumjs-util is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci Your tests failed on CircleCI Details

Release Notes v5.1.3 - Maintenance Release
  • ES6 syntax updates
  • Dropped Node 5 support
  • Moved babel to dev dependencies, switched to env preset
  • Usage of safe-buffer instead of Node Buffer
  • Do not allow capital 0X as valid address in isValidAddress()
  • New methods zeroAddress() and isZeroAddress()
  • Updated dependencies
Commits

The new version differs by 40 commits.

  • 3e72947 Release commit for v5.1.3
  • 279ac78 Updated deprecated babel es2015 to env preset
  • 3d05254 chore(package): update babelify to version 8.0.0
  • aed81b9 Merge pull request #106 from ethereumjs/greenkeeper/karma-2.0.0
  • acc9130 chore(package): update karma to version 2.0.0
  • a65787d Merge pull request #102 from ethereumjs/greenkeeper/karma-detect-browsers-2.2.6
  • deb4019 chore(package): update karma-detect-browsers to version 2.2.6
  • 193a119 Merge pull request #98 from ethereumjs/greenkeeper/mocha-4.0.0
  • f0aafb0 Update travis to build with Node 8 (from Node 7)
  • 5d59ad6 Merge branch 'master' into greenkeeper/mocha-4.0.0
  • 9e6cda9 Merge pull request #96 from ethereumjs/greenkeeper/coveralls-3.0.0
  • 7f31795 Merge branch 'master' into greenkeeper/coveralls-3.0.0
  • 15d4085 Merge pull request #91 from ethereumjs/greenkeeper/documentation-5.2.0
  • 0c0f23f Rebuild docs with new documentation version
  • d75a4b2 Updated build:docs command to reflect syntax changes from updated documentation version

There are 40 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eth-sig-util is breaking the build 🚨

Version 1.4.1 of eth-sig-util was just published.

Branch Build failing 🚨
Dependency eth-sig-util
Current Version 1.4.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

eth-sig-util is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci Your tests failed on CircleCI Details

Commits

The new version differs by 5 commits.

  • a621f95 Version 1.4.1
  • 0e119ca Merge pull request #11 from brunobar79/fix-uglify
  • ba77bdb Fix uglify
  • a24e7ac Merge pull request #6 from MetaMask/greenkeeper/mocha-4.0.0
  • 69861b8 chore(package): update mocha to version 4.0.0

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.