MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / normalizeHex

Function normalizeHex

kms/auth-simple/index.ts:58–64  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

56
57// normalize hex string to lowercase with 0x prefix
58function normalizeHex(hex: string): string {
59 hex = hex.toLowerCase();
60 if (!hex.startsWith('0x')) {
61 hex = '0x' + hex;
62 }
63 return hex;
64}
65
66// config-based backend
67class ConfigBackend {

Callers 3

checkBootMethod · 0.85
checkKmsBootMethod · 0.85
checkAppBootMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected