Update dashboard, kb, memory +4 more (+28 ~18 -1)
This commit is contained in:
19
node_modules/@exodus/bytes/base58check.js
generated
vendored
Normal file
19
node_modules/@exodus/bytes/base58check.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { sha256 } from '@noble/hashes/sha2.js'
|
||||
import { makeBase58check } from './fallback/base58check.js'
|
||||
|
||||
// Note: while API is async, we use hashSync for now until we improve webcrypto perf for hash256
|
||||
// Inputs to base58 are typically very small, and that makes a difference
|
||||
|
||||
// Note: using native WebCrypto will have to have account for SharedArrayBuffer
|
||||
|
||||
const hash256sync = (x) => sha256(sha256(x))
|
||||
const hash256 = hash256sync // See note at the top
|
||||
const {
|
||||
encode: toBase58check,
|
||||
decode: fromBase58check,
|
||||
encodeSync: toBase58checkSync,
|
||||
decodeSync: fromBase58checkSync,
|
||||
} = makeBase58check(hash256, hash256sync)
|
||||
|
||||
export { makeBase58check } from './fallback/base58check.js'
|
||||
export { toBase58check, fromBase58check, toBase58checkSync, fromBase58checkSync }
|
||||
Reference in New Issue
Block a user