import BN from './../com/bignumber.min.js' export default class BigNumber extends BN { constructor(n) { super(n); } static maximumHash() { let hash = new BN(2, 10); hash = hash.pow(256).minus(1); return hash; } static randomHash() { let two = new BN(2, 10); two = two.pow(256).minus(1); let hash = two.multipliedBy(BN.random()).toString(16); if(hash.indexOf('.') > 0) { hash = hash.substr(0, hash.indexOf('.')); } return hash.padStart(64, '0').toUpperCase(); } }