Skip to content

Commit

Permalink
Merge pull request #7 from catlee/master
Browse files Browse the repository at this point in the history
v1.2 - signature validation & mardor!
  • Loading branch information
Rail Aliiev committed Jan 20, 2015
2 parents e9c1ef4 + b0cfff3 commit 72a9868
Show file tree
Hide file tree
Showing 10 changed files with 392 additions and 280 deletions.
File renamed without changes.
13 changes: 13 additions & 0 deletions mardor/bits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import struct


def packint(i):
return struct.pack(">L", i)


def unpackint(s):
return struct.unpack(">L", s)[0]


def unpacklongint(s):
return struct.unpack(">Q", s)[0]

0 comments on commit 72a9868

Please sign in to comment.