Factom storage: store and retrieve files from Factom blockchain
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
doc
src
.eslintrc.json
.gitignore
.jsbeautifyrc
README.md
package-lock.json
package.json

README.md

factom-storage

Factom-storage is a simple proof of concept to store and retrieve complete files in the Factom blockchain. That said having a blockchain storage at a fixed rate (not dependending on fluctuation of the market) is not that a crazy idea and can have some actual utility.

Please checkout doc folder for technical details on how your documents are safely uploaded.

Installation

sudo npm install -g factom-storage

Usage

Upload

factom-storage upload [options] <file> <EC address for payment>

  Upload a file in Factom storage

  Options:

    -m, --meta <meta>      Optional textual meta information about the file to be stored
    -s, --socket <socket>  IPAddress:port of factomd API (default localhost:8088)
    -h, --help             output usage information
# If you provide a public EC address for payment factom-storage will attempt to retrieve the private key from a local walletd running on port 8089
factom-storage upload -s '52.202.51.229:8088' -m "My pic!" ./my_picture.jpg EC2vXWYkAPduo3oo2tPuzA44Tm7W6Cj7SeBr3fBnzswbG5rrkSTD
# If you provide directly a private EC address the tool doesn't need access to walletd
factom-storage upload -s '52.202.51.229:8088' -m "My pic!" ./my_picture.jpg Es32PjobTxPTd73dohEFRegMFRLv3X5WZ4FXEwNN8kE2pMDfeMyk

Download

Usage: factom-storage download <chain ID of the file>

  Download a file stored with Factom storage

  Options:

    -s, --socket <socket>  IPAddress:port of factomd API (default localhost:8088)
    -h, --help             output usage information
factom-storage download -s '52.202.51.229:8088' e1e1a5cbfb153d92bfd0db4dcd7bf2cfcdb52e4d3bb05beada8c9e70536a455e