Closed lucanicoladebiasi closed 3 months ago
Lines | Statements | Branches | Functions |
---|---|---|---|
100% (3399/3399) | 100% (790/790) | 100% (702/702) |
Title | Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|---|
core | 494 | 0 :zzz: | 0 :x: | 0 :fire: | 1m 3s :stopwatch: |
network | 658 | 0 :zzz: | 0 :x: | 0 :fire: | 3m 51s :stopwatch: |
errors | 48 | 0 :zzz: | 0 :x: | 0 :fire: | 11.008s :stopwatch: |
Description
The code at
packages/core/src/hash/blake2b256.ts
enforces the normalization form for canonical composition of hashed strings and introduce the methodblake2b256OfHex
to hash bytes expressed as hexadecimal. Documentation reviewed for sake of clarity.Tests at
packages/core/tests/hash/blake2b256.unit.test.ts
introduce teh canonical test pattern with one test case per test to speed-up debugging. The code suggests tests to check the compatibility withthor-dev-kit
but such code is commented out because the introduction of`thor-dev-kit
dependency clashes withbignumber.js
dependency.Fixes # 949
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: