Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

factom-storage

0.1.3 • Public • Published

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

install

npm i factom-storage

Downloadsweekly downloads

3

version

0.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability