import Buffer package

This commit is contained in:
Miguel Mota 2022-06-17 18:10:24 -07:00
parent 893ce99a4a
commit 14ea7684bf
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
import { Buffer } from 'buffer'
import CryptoJS from 'crypto-js' import CryptoJS from 'crypto-js'
export class Base { export class Base {

View File

@ -1,5 +1,6 @@
import Base from './Base' import { Buffer } from 'buffer'
import SHA256 from 'crypto-js/sha256' import SHA256 from 'crypto-js/sha256'
import Base from './Base'
// @credit: https://github.com/wanseob/solidity-mmr // @credit: https://github.com/wanseob/solidity-mmr
/** /**

View File

@ -1,7 +1,8 @@
import { Buffer } from 'buffer'
import reverse from 'buffer-reverse' import reverse from 'buffer-reverse'
import SHA256 from 'crypto-js/sha256' import SHA256 from 'crypto-js/sha256'
import Base from './Base'
import treeify from 'treeify' import treeify from 'treeify'
import Base from './Base'
// TODO: Clean up and DRY up code // TODO: Clean up and DRY up code
// Disclaimer: The multiproof code is unaudited and may possibly contain serious issues. It's in a hacky state as is and it's begging for a rewrite! // Disclaimer: The multiproof code is unaudited and may possibly contain serious issues. It's in a hacky state as is and it's begging for a rewrite!