bitsh is a shell interface that lets you "sign into" Bitcom, a virtual unix computer on Bitcoin.
The main use case for Bitcom currently is to manage and publish OP_RETURN based application protocols through the Bitcom decentralized directory.
Each account effectively represents an application protocol, and you can customize the home folder of your application protocol to globally publish the protocol to the decentralized Bitcom directory.
Learn more here.
Install bitsh globally.
npm install -g bitsh
There is already an NPM package named bitcom, which is a precursor of the bitsh module.
Both packages let you access Bitcom, but bitsh is much more powerful as it's not just a one-off command line application, but an entire shell interface you log into.
Think of the bitcom package as a one-off command line app like git, whereas bitsh is like Bash, but for Bitcom.
Bitsh is also a full fledged HD wallet. Bitsh creates a hidden folder named
.bitcom under your home directory. This folder is used to maintain the generated extended private/public keys you can use to log into Bitcom and publish your application protocols.
The folder structure looks like this:
~/.bitcom .seed /hd /0 .bit /1 .bit .. /wif /[Addr1] .bit /[Addr2] .bit ..
.bitcomfolder is automatically created in your home directory when you first launch bitsh
.bitcomfolder contains a single
.seedfile which contains the seed HD keys from which you will derive your real keys from.
.bitcom/hdfolder maintains the generated keys, incrementing the index every time you create a new key.
.bitcom/wiffolder maintains NON-HD keys you import. You can import external keys simply by running bitsh with
bitsh [WIF to import].
You can list the supported commands by typing in
Here are the currently supported commands:
You can either use
to to import
c:// URIs to a Bitcom local file
cat X > Y
is equivalent to
cat X to Y
You can assign string content to a Bitcom local file
echo "hello world" > description
is equivalent to
echo "hello world" to description
The history command lists all the Bitcom activities for the account.
Or you can run the command for another account:
Display all Bitcom local file names
or display all files for another account:
Enable or Add bit:// routes to application protocols.
Learn more at bit:// specification.
Register your account on Bitcom. This signals that your account is taken.
Display current account information