grafana / xk6-webcrypto

WIP implementation of the WebCrypto specification for k6
GNU Affero General Public License v3.0
7 stars 4 forks source link

Refactor bits/bytes conversion #45

Closed oleiade closed 1 year ago

oleiade commented 1 year ago

This PR address #36 and introduces two new type aliases: bitLength and byteLength helping make conversion from bytes length to bits and vice versa, more explicit, readable, and less error prone.

closes #36