static #addressToKey (v: string): string {\r
const publicKeyBytes = base32.toBytes(v.slice(-60, -8))\r
const checksumBytes = base32.toBytes(v.slice(-8))\r
- const blakeHash = new Blake2b(5).update(publicKeyBytes).digest()\r
- blakeHash.reverse()\r
- if (bytes.toHex(checksumBytes) !== bytes.toHex(blakeHash)) {\r
+ const rechecksumBytes = new Blake2b(5).update(publicKeyBytes).digest().reverse()\r
+ if (bytes.toHex(checksumBytes) !== bytes.toHex(rechecksumBytes)) {\r
throw new Error('Checksum mismatch in address')\r
}\r
return bytes.toHex(publicKeyBytes)\r