phpkevacoinblockchainkevacoin-apiclidistributed-storagedecentralized-storageblockchain-storagecli-appclitor-phpclitorblockchain-fs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost
2f381f9581
|
7 months ago | |
---|---|---|
src | 7 months ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 7 months ago |
README.md
kevacoin-cli
CLI tools for KevaCoin
put
export FS object to blockchain
logic
- create separated namespace with file basename as
_KEVA_NS_
- append protocol version as
_CLITOR_IS_
- encode file content to base64 string
- split encoded string to
3072
byte pieces - save pieces as indexed record values
example
php src/put.php processor filename [delay]
arguments
processor
- path tokevacoin-cli
filename
- path to source filedelay
- optional delay in seconds for pieces pool to preventtoo-long-mempool-chain
reject, default60
fix
check (validate) existing namespace and fix missed FS pieces in blockchain
logic
similar to the put logic but using namespace provided as the additional argument
example
php src/fix.php processor namespace filename [delay]
arguments
processor
- path tokevacoin-cli
namespace
- hash of namespace where object was storedfilename
- path to source filedelay
- optional delay in seconds for pieces pool to preventtoo-long-mempool-chain
reject, default60
get
import stored object from blockchain to FS location
logic
- check namespace for
_CLITOR_IS_
record - merge indexed records to base64 string
- decode merged string to original file and save to FS
example
php src/get.php processor namespace [filename]
arguments
processor
- path tokevacoin-cli
namespace
- hash of namespace where object was storedfilename
- path to the file