update readme

This commit is contained in:
ghost 2024-06-04 13:04:50 +03:00
parent 98ec818eb6
commit 9b5bb48912

View File

@ -2,54 +2,56 @@
CLI tools for KevaCoin
### docs
### about
* [protocol specification](https://clitor-is-protocol.github.io)
### put
### documentation
#### put
export FS object to blockchain
#### example
##### example
```
php src/put.php processor filename [delay]
```
#### arguments
##### 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
#### fix
check (validate) existing namespace and fix missed FS pieces in blockchain
#### example
##### example
```
php src/fix.php processor namespace filename [delay]
```
#### arguments
##### 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
#### get
import stored object from blockchain to FS location
#### example
##### example
```
php src/get.php processor namespace [filename]
```
#### arguments
##### arguments
1. `processor` - path to `kevacoin-cli`
2. `namespace` - hash of namespace where object was stored