MCPcopy Create free account
hub / github.com/cameri/nostream / toBech32

Function toBech32

src/utils/transform.ts:163–165  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

161}
162
163export const toBech32 = (prefix: string) => (input: string): string => {
164 return bech32Encode(prefix, bech32Convert(Array.from(Buffer.from(input, 'hex')), 8, 5, true))
165}
166
167export const toDate = (input: string | number) => new Date(input)
168

Callers 1

handleRequestMethod · 0.90

Calls 2

bech32EncodeFunction · 0.85
bech32ConvertFunction · 0.85

Tested by

no test coverage detected