This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Hyperswarm from 'hyperswarm' | |
import Hypercore from 'hypercore' | |
import Corestore from 'corestore' | |
import BlobServer from 'hypercore-blob-server' | |
import b4a from 'b4a' | |
const keyInput = Bare.argv[2] | |
if (!keyInput) throw new Error('provide a key') | |
const key = b4a.from(keyInput, 'hex') |