Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HarukaMa/bitshares-p2p
Pocking around p2p protocol of BitShares network.
https://github.com/HarukaMa/bitshares-p2p
bitshares
Last synced: about 2 months ago
JSON representation
Pocking around p2p protocol of BitShares network.
- Host: GitHub
- URL: https://github.com/HarukaMa/bitshares-p2p
- Owner: HarukaMa
- License: mit
- Created: 2019-09-21T10:15:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T20:05:54.000Z (over 5 years ago)
- Last Synced: 2024-10-28T20:56:54.496Z (2 months ago)
- Topics: bitshares
- Language: Python
- Size: 69.3 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bitshares - bitshares-p2p - Pocking around p2p protocol of BitShares network. (Libraries / Python Libraries)
README
Interacting with BitShares nodes through P2P protocol.
### About CityHash
You will need to change the source code of the python-cityhash library to correctly generate IV used in encryption. It will not work out-of-box due to code changes during integration into BitShares code.
```diff
diff --git a/include/city.h b/include/city.h
index 94499ce..7080439 100644
--- a/include/city.h
+++ b/include/city.h
@@ -71,8 +71,8 @@ typedef uint32_t uint32;
typedef uint64_t uint64;
typedef std::pair uint128;-inline uint64 Uint128Low64(const uint128& x) { return x.first; }
-inline uint64 Uint128High64(const uint128& x) { return x.second; }
+inline uint64 Uint128Low64(const uint128& x) { return x.second; }
+inline uint64 Uint128High64(const uint128& x) { return x.first; }// Hash function for a byte array.
uint64 CityHash64(const char *buf, size_t len);
```