8000 GitHub - amanalili/edge-core-js: Edge Core Javascript implementation. Provides Edge account and wallet functionality for NodeJS/HTML/React Native apps
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Edge Core Javascript implementation. Provides Edge account and wallet functionality for NodeJS/HTML/React Native apps

License

Notifications You must be signed in to change notification settings

amanalili/edge-core-js

 
 

Repository files navigation

Edge Core

This library implements the Edge login system. It runs inside a client application, and provides zero-knowledge backup for cryptographic keys and other secrets via a familiar password-based login system.

JavaScript Style Guide code style: prettier

Documentation

See https://developer.airbitz.co/javascript/

Account Management UI

To quickly get up and running with the UI for account creation, login, and management, use edge-login-ui-web for the web or edge-login-ui-rn for React Native.

Setup

Just use npm install --save edge-core-js to add this library to your project.

This library uses modern Javascript syntax features from ES 2018. While these work fine in recent browsers, React Native, and Node 10+, you might need to run this library through Babel if you care about older systems.

On the other hand, this library avoids modern run-time features from ES 2015 or later, so you don't need to provide polyfills. The only features we use from ES 2015 or later are:

  • Object.assign
  • Promise
  • Uint8Array

If you want to run in the browser, you must also have:

  • fetch
  • localStorage
  • Window.crypto.getRandomNumbers

React Native

This library has React Native support. Starting at version 0.15.0, however, it achieves this support by running most of its logic inside a WebView component. This has several important advantages, including better performance, but it makes integration quite complicated. We are in the process of simplifying and documenting the necessary steps. In the mean time, please refer to the edge-react-gui project for an example of what this integration looks like.

Contributing

Run yarn to download dependencies and build the library, then run yarn test to run the unit tests, and yarn flow to check for type errors.

All sources are in the JavaScript Standard Style + Prettier. We check files prior to each commit, so if you have formatting issues, you can run yarn format to fix them automatically.

If you use Visual Studio Code, consider installing the prettier-vscode extension. You'll want to enable the prettier.eslintIntegration configuration option for this to work seamlessly with Standard.

If you use Atom, you can use prettier-atom. You'll want to check the "ESLint Integration" setting for this to work seamlessly with Standard.

About

Edge Core Javascript implementation. Provides Edge account and wallet functionality for NodeJS/HTML/React Native apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
0