Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Remove buffer dependency
Browse files Browse the repository at this point in the history
Closes #332
  • Loading branch information
willclarktech committed Sep 7, 2017
1 parent 30723c9 commit ebb7410
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -24,7 +24,6 @@
"dependencies": {
"babel-polyfill": "=6.23.0",
"browserify-bignum": "=1.3.0-2",
"buffer": "=5.0.6",
"bytebuffer": "=5.0.1",
"ed2curve": "=0.2.1",
"js-nacl": "LiskHQ/js-nacl#6dc1417",
Expand Down
1 change: 0 additions & 1 deletion src/crypto/convert.js
Expand Up @@ -12,7 +12,6 @@
* Removal or modification of this copyright notice is prohibited.
*
*/
import { Buffer } from 'buffer';
import bignum from 'browserify-bignum';
import ed2curve from 'ed2curve';
import { getSha256Hash } from './hash';
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Expand Up @@ -19,7 +19,6 @@
*/
import 'babel-polyfill';
import naclFactory from 'js-nacl';
import buffer from 'buffer';
import crypto from './crypto';
import dapp from './transactions/dapp';
import delegate from './transactions/delegate';
Expand All @@ -32,8 +31,6 @@ import api from './api/liskApi';
import slots from './time/slots';
import mnemonic from './utils/mnemonic';

global.Buffer = global.Buffer || buffer.Buffer;

global.naclFactory = naclFactory;

global.naclInstance = null;
Expand Down
1 change: 0 additions & 1 deletion src/utils/mnemonic.js
Expand Up @@ -29,7 +29,6 @@
*/
import bignum from 'browserify-bignum';
import crypto from 'crypto';
import { Buffer } from 'buffer';
import wordList from './words';

/**
Expand Down

0 comments on commit ebb7410

Please sign in to comment.