feat: initial commit of Railtrack Pro prototype with complete test suite

This commit is contained in:
Railtrack Pro Dev
2026-03-13 14:26:16 +00:00
commit 40500bb503
7790 changed files with 986332 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { hash } from 'node:crypto'
import { makeBase58check } from './fallback/base58check.js'
const sha256 = (x) => hash('sha256', x, 'buffer')
const hash256 = (x) => sha256(sha256(x))
const {
encode: toBase58check,
decode: fromBase58check,
encodeSync: toBase58checkSync,
decodeSync: fromBase58checkSync,
} = makeBase58check(hash256, hash256)
export { makeBase58check } from './fallback/base58check.js'
export { toBase58check, fromBase58check, toBase58checkSync, fromBase58checkSync }