import { BURN_ADDRESS, PREAMBLE } from './constants.js'
import { Account } from './account.js'
+import { Blake2b } from './blake2b.js'
import { bytes, dec, hex } from './convert.js'
import { NanoNaCl } from './nano-nacl.js'
import { Pool } from './pool.js'
dec.toHex(this.balance, 32),
this.link
]
- const hash = await Tools.hash(data, 'hex')
- return hash
+ const hash = new Blake2b(32)
+ data.forEach(str => hash.update(hex.toBytes(str)))
+ return hash.digest('hex').toUpperCase()
}
/**