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

Commit

Permalink
Rename buffer file to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Feb 22, 2019
1 parent c1b9281 commit e74c305
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/account.ts
Expand Up @@ -2,7 +2,7 @@ const assert = require('assert')
const ethjsUtil = require('ethjs-util')
const secp256k1 = require('secp256k1')
import BN = require('bn.js')
import { toBuffer, addHexPrefix, zeros, bufferToHex, unpad } from './buffer'
import { toBuffer, addHexPrefix, zeros, bufferToHex, unpad } from './bytes'
import { keccak, keccak256, rlphash } from './hash'

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/hash.ts
@@ -1,7 +1,7 @@
const createKeccakHash = require('keccak')
const createHash = require('create-hash')
import rlp = require('rlp')
import { toBuffer, setLength } from './buffer'
import { toBuffer, setLength } from './bytes'

/**
* Creates Keccak hash of the input
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -40,9 +40,9 @@ export * from './hash'
export * from './signature'

/**
* Utilities for manipulating Buffers
* Utilities for manipulating Buffers, byte arrays, etc.
*/
export * from './buffer'
export * from './bytes'

/**
* Function for definining properties on an object
Expand Down
2 changes: 1 addition & 1 deletion src/object.ts
@@ -1,7 +1,7 @@
const assert = require('assert')
const ethjsUtil = require('ethjs-util')
import rlp = require('rlp')
import { toBuffer, baToJSON, stripZeros } from './buffer'
import { toBuffer, baToJSON, stripZeros } from './bytes'

/**
* Defines properties on a `Object`. It make the assumption that underlying data is binary.
Expand Down
2 changes: 1 addition & 1 deletion src/signature.ts
@@ -1,6 +1,6 @@
const secp256k1 = require('secp256k1')
import BN = require('bn.js')
import { toBuffer, setLength, setLengthLeft, bufferToHex } from './buffer'
import { toBuffer, setLength, setLengthLeft, bufferToHex } from './bytes'
import { keccak } from './hash'

export interface ECDSASignature {
Expand Down

0 comments on commit e74c305

Please sign in to comment.