/util.py (12c1beccb7852f14fe670785de765cd7e923eacc) (229 bytes) (mode 100644) (type blob)
#!/usr/bin/python3
def increment_nonce(nonce):
"""
Increment a big-endian nonce stored in bytes object
"""
i = int.from_bytes(nonce, byteorder='big')
i += 1
return i.to_bytes(byteorder='big', length=24)
Mode |
Type |
Size |
Ref |
File |
100755 |
blob |
1521 |
99a0c93e02ec61a69bfe227726e31684885d6f36 |
crap.py |
100644 |
blob |
63 |
2b8db81f939b6621684a6fa5d7d00477a7de401a |
exceptions.py |
100644 |
blob |
523 |
fe0c50cb32adfaf523a254ee49d73a2a16cb91bb |
identity.py |
100644 |
blob |
594 |
ef6304573432cb08f54ea4e0df4dbee00affab83 |
session.py |
100644 |
blob |
11836 |
0b4efe4dcdf1263c9f2dd18d16ef257ea4016da2 |
tcp.py |
100644 |
blob |
229 |
12c1beccb7852f14fe670785de765cd7e923eacc |
util.py |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gdr/PurePyTox
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gdr/PurePyTox
Clone this repository using git:
git clone git://git.rocketgit.com/user/gdr/PurePyTox
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main