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

Function H2B

examples/crypt/cryptdigest/main.js:18–21  ·  view source on GitHub ↗
(hstr)

Source from the content-addressed store, hash-verified

16import Bin from "bin";
17
18function H2B(hstr)
19{
20 return ArrayBuffer.fromBigInt(BigInt(hstr));
21}
22
23function B2H(b)
24{

Callers 1

main.jsFile · 0.70

Calls 1

fromBigIntMethod · 0.80

Tested by

no test coverage detected