Distributed currency
Project description
Node / Client / Networking
Running a node
Requirements: python3, pip, domain with SSL certificate
- Installing python package:
pip install listrum
- Starting a node:
python3 -m listrum.node
- (Optional) Starting a history node:
python3 -m listrum.history
Glossary:
- Download node - if your node doesn't know the balance, it will ask this node
- Node list - where transactions will be broadcasted
- Repay - amount of value payed back to sender
- Fee - difference between sended and received value
- History node - node that saves txs and sends it with /history/
- tx_ttl - time tx will be stored until timestamp invalid
- pad_length - short public key length
- fee - present of sended value that will be received
- repay_update - time after repay value will be updated
- repay_value - present of all repay value per transaction
Commands:
- /list - list all connected nodes
- /add Node - add node to node list
- /remove Node - remove node from node list
- /download Node - set download node
- /owner Address - set owner address (for issue)
Working with client
Requirements: python3, pip
- Installing python package:
pip install listrum
- (Optional) Starting console client:
python3 -m listrum.client
Commands:
- /list - list all connected nodes
- /add Node - add node to node list
- /remove Node - remove node from node list
- /clear - remove all nodes
- /issue Value - send mint request
- /balance - show balance and wallet address
- /priv - export private key
- /history (SourceNode) - show history of your wallet
API:
Client(priv_key: str= "")
self.key - wallet address
self.nodes - list<NodeReq>
add_node(address: str)
export_priv() -> str
remove_node(address: str)
add_node(address: str)
send(to: str, value: float)
issue(value: float)
balance() -> float
Glossary:
- self.owner - full public key
- self.key - compressed wallet key
- balance() - get balance from all nodes and calcualte average
- NodeReq - interactive node class
Network interface
Balance:
HTTPS GET /balance/WalletAddress
200 OK balance
Issue:
HTTPS GET /issue/
{
"from": {
"owner": FullWalletAddress,
"time": Timestamp,
"sign": sign(value + time)
},
"value": FloatValue
}
200 OK
Send:
HTTPS GET /send/
{
"from": {
"owner": FullWalletAddress,
"time": Timestamp,
"sign": sign(to + time)
},
"to": {
"to": WalletAddress,
"value": FloatValue
}
}
200 OK
History:
HTTPS GET /history/WalletAddress
200 OK [{"to": WalletAddress, "value": FloatValue}, ..]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Listrum-1.1.3b0.tar.gz
(9.2 kB
view hashes)
Built Distribution
Listrum-1.1.3b0-py3-none-any.whl
(13.3 kB
view hashes)
Close
Hashes for Listrum-1.1.3b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290c93a57a2cbc437f79036100752093da5e5bf5ed38a1e0e9e36a0c3977a7a2 |
|
MD5 | 2b04f79adda807bf305453b2fe88efb7 |
|
BLAKE2b-256 | 3c42b80876d1f0de758d5866cb79012c0b0d1e3bb99ca5f3aa57d1939c6cc9fc |