MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / H2B

Function H2B

tests/modules/crypt/digest/testvectors.js:9–12  ·  view source on GitHub ↗
(hstr)

Source from the content-addressed store, hash-verified

7import Bin from "bin";
8
9function H2B(hstr)
10{
11 return ArrayBuffer.fromBigInt(BigInt(hstr));
12}
13
14function B2H(b)
15{

Callers 1

testvectors.jsFile · 0.70

Calls 1

fromBigIntMethod · 0.80

Tested by

no test coverage detected