|
|
|
# kevacoin-cli
|
|
|
|
|
|
|
|
CLI tools for KevaCoin
|
|
|
|
|
|
|
|
### docs
|
|
|
|
|
|
|
|
* [protocol specification](https://clitor-is-protocol.github.io)
|
|
|
|
|
|
|
|
### put
|
|
|
|
|
|
|
|
export FS object to blockchain
|
|
|
|
|
|
|
|
#### example
|
|
|
|
|
|
|
|
```
|
|
|
|
php src/put.php processor filename [delay]
|
|
|
|
```
|
|
|
|
|
|
|
|
#### arguments
|
|
|
|
|
|
|
|
1. `processor` - path to `kevacoin-cli`
|
|
|
|
2. `filename` - path to source file
|
|
|
|
3. `delay` - _optional_ delay in seconds for pieces pool to prevent `too-long-mempool-chain` reject, default `60`
|
|
|
|
|
|
|
|
### fix
|
|
|
|
|
|
|
|
check (validate) existing namespace and fix missed FS pieces in blockchain
|
|
|
|
|
|
|
|
#### example
|
|
|
|
|
|
|
|
```
|
|
|
|
php src/fix.php processor namespace filename [delay]
|
|
|
|
```
|
|
|
|
|
|
|
|
#### arguments
|
|
|
|
|
|
|
|
1. `processor` - path to `kevacoin-cli`
|
|
|
|
2. `namespace` - hash of namespace where object was stored
|
|
|
|
3. `filename` - path to source file
|
|
|
|
4. `delay` - _optional_ delay in seconds for pieces pool to prevent `too-long-mempool-chain` reject, default `60`
|
|
|
|
|
|
|
|
### get
|
|
|
|
|
|
|
|
import stored object from blockchain to FS location
|
|
|
|
|
|
|
|
#### example
|
|
|
|
|
|
|
|
```
|
|
|
|
php src/get.php processor namespace [filename]
|
|
|
|
```
|
|
|
|
|
|
|
|
#### arguments
|
|
|
|
|
|
|
|
1. `processor` - path to `kevacoin-cli`
|
|
|
|
2. `namespace` - hash of namespace where object was stored
|
|
|
|
3. `filename` - path to the file
|