Distributed currency
Project description
Client | Node | Networking | Glossary
Running listrum
Requirements: python3, pip, domain with an SSL certificate
- Installing python package:
pip install listrum -U
- Starting a node:
python3 -m listrum
Client
Client class API
Client(key: dict = {}) - use plain JWK from browser or generates new
send_all(to: str) - sends all funds to wallet address
balance() -> float - balance of imported key
wallet: str - get padded wallet address
Node
Node Config:
Stored in your home user directory in /listrum/node_config.json
{
"port": 2525,
"wallet": your wallet for app payments and issue
"cert": full path to SSL sertificate
"cert_key": full path to SSL private key
}
Node commands:
- /issue Value - add value to your wallet
- /q - close node
- /update - update your nodes list
Node class API
on_send(Tx) - called on successfull tx
on_request(Request) - called on request
Glossary:
-
trusted_nodes - nodes your node will ask for unknown balances
-
broadcast_nodes - nodes where tx will be broadcasted (auto for trusted nodes)
-
storage - store wallets' balance in home dir /listrum/storage
-
pad_length - short public key length
-
Repay - amount of value payed back to sender
-
Fee - difference between sended and received value
-
tx_ttl - time tx will be stored until timestamp invalid
-
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
Networking:
Balance:
HTTPS GET :2525/balance/WalletAddress
200 OK balance
Send:
HTTPS GET :2525/send/
{
"from": {
"pub": FullWalletAddress,
"time": Timestamp,
"sign": sign(to + time)
},
"data": {
"to": WalletAddress,
"value": FloatValue
}
}
200 OK
Get fee
HTTPS GET :2525/fee
200 OK Fee
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
Built Distribution
Hashes for Listrum-1.3.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 659aedca917a427b951f2d55e8b3602daef5353fe744155feac1f621992cf964 |
|
MD5 | cddf76dda11a5a78167f1c9e26e230bb |
|
BLAKE2b-256 | 7e9a6fd8462ab577475fc9ae6be403da2f38e695a13bd06b7f2b3c67e69f004d |