commit 164a724e161db1e2846bcc5ef87f2eda58b956a0 parent d38cb46bfe7d350b9f3b0dc306bc6dee8989036c Author: nolash <dev@holbrook.no> Date: Fri, 1 Oct 2021 10:11:13 +0200 Rename module to swarm Diffstat:
8 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/setup.py b/setup.py @@ -19,7 +19,7 @@ f.close() def main(): setup( name="swarm", - version="0.0.1a1", + version="0.0.1a2", description="Swarm tooling", author="Louis Holbrook", author_email="dev@holbrook.no", @@ -57,9 +57,9 @@ def main(): ], entry_points = { 'console_scripts': [ - 'swarm-bmt=pylibswarm.runnable.bmt:main', - 'swarm-file=pylibswarm.runnable.file:main', - 'swarm-soc=pylibswarm.runnable.soc:main', + 'swarm-bmt=swarm.runnable.bmt:main', + 'swarm-file=swarm.runnable.file:main', + 'swarm-soc=swarm.runnable.soc:main', ], }, ) diff --git a/pylibswarm/arg.py b/swarm/arg.py diff --git a/pylibswarm/io.py b/swarm/io.py diff --git a/pylibswarm/runnable/bmt.py b/swarm/runnable/bmt.py diff --git a/pylibswarm/runnable/file.py b/swarm/runnable/file.py diff --git a/pylibswarm/runnable/soc.py b/swarm/runnable/soc.py diff --git a/swarm/sign.py b/swarm/sign.py @@ -0,0 +1,10 @@ +# external imports +from chainlib.eth.cli import Wallet + + +class DefaultSigner(Wallet): + + def sign(self, address, message): + address_hex = address.hex() + signature = self.signer.sign_message(address_hex, message, dialect='eth') + return signature diff --git a/pylibswarm/soc.py b/swarm/soc.py