Skip to content

foo1inge/datacoin-browser

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

datacoin-browser

1. How to put file into Datacoin blockchain?

$ perl dtc_put_file.pl file.txt

Upon success scripts returns id of transaction received from daemon. This means that daemon accepted this transaction.

Use "--add_key" argument in order to add RSA public key to file. Correpspondin private key will be printed to STDOUT. Keys and signatures are required to link several txes in "big file" and "update file" scenarios. For details see "envelope.proto" file.

Note: both scenarios aren't fully implemented now. Only small (less 128Kb) files can be easily stored now.

2. How to get data from Datacoin blockchain?

$ perl dtc_get_file.pl txid

"txid" is a transaction id returned by dtc_put_file.pl.

Upon success scripts prints data content of corresponding transaction. In order to save data to file use "--save_to=filename" option.

Dependencies

Both scripts depends on following modules.

  • Google::ProtocolBuffers
  • MIME::Base64
  • IO::Compress::Bzip2
  • IO::Uncompress::Bunzip2
  • Crypt::OpenSSL::RSA
  • JSON::RPC::Client
  • File::HomeDir
  • Data::Dumper

About

Datacoin browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages