Skip to content

Commit

Permalink
add named import for Buffer module
Browse files Browse the repository at this point in the history
  • Loading branch information
grenos committed Dec 23, 2022
1 parent 08f702d commit d2a0b22
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/abi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AbiCoder, formatSignature as _formatSignature } from '@vechain/ethers/utils/abi-coder'
import { keccak256 } from './keccak'
import { Buffer } from 'buffer'

class Coder extends AbiCoder {
constructor() {
Expand Down
1 change: 1 addition & 0 deletions src/blake2b.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import blake from 'blakejs'
import { Buffer } from 'buffer'

/**
* computes blake2b 256bit hash of given data
Expand Down
1 change: 1 addition & 0 deletions src/bloom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { blake2b256 } from './blake2b'
import { Buffer } from 'buffer'

/**
* 2048 bits Bloom filter
Expand Down
1 change: 1 addition & 0 deletions src/certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { address } from './address'
import { blake2b256 } from './blake2b'
import { secp256k1 } from './secp256k1'
import fastJsonStableStringify from 'fast-json-stable-stringify'
import { Buffer } from 'buffer'

/**
* Client side self-signed certificate
Expand Down
1 change: 1 addition & 0 deletions src/hdnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as HD from '@vechain/ethers/utils/hdnode'
import { createHash } from 'crypto'
import { ec as EC } from 'elliptic'
import { address } from './address'
import { Buffer } from 'buffer'

// see https://github.com/satoshilabs/slips/blob/master/slip-0044.md
const VET_DERIVATION_PATH = `m/44'/818'/0'/0`
Expand Down
1 change: 1 addition & 0 deletions src/keccak.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { keccak_256 } from 'js-sha3'
import { Buffer } from 'buffer'
/**
* computes keccak256 hash of given data
* @param data one or more Buffer | string
Expand Down
1 change: 1 addition & 0 deletions src/keystore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as SecretStorage from '@vechain/ethers/utils/secret-storage'
import { Buffer } from 'buffer'

/** to present encrypted private key in Ethereum keystore format. */
export interface Keystore {
Expand Down
1 change: 1 addition & 0 deletions src/rlp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BigNumber from 'bignumber.js'
import * as rlp from 'rlp'
import { Buffer } from 'buffer'

export class RLP {
constructor(readonly profile: RLP.Profile) { }
Expand Down
1 change: 1 addition & 0 deletions src/secp256k1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { randomBytes } from 'crypto'
import { ec as EC } from 'elliptic'
import { Buffer } from 'buffer'

const curve = new EC('secp256k1')

Expand Down
1 change: 1 addition & 0 deletions src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { address } from './address'
import { blake2b256 } from './blake2b'
import { RLP } from './rlp'
import { secp256k1 } from './secp256k1'
import { Buffer } from 'buffer'

/** Transaction class defines VeChainThor's multi-clause transaction */
export class Transaction {
Expand Down

0 comments on commit d2a0b22

Please sign in to comment.