From 70d8ab6a33b5bfe3a7b88dc78cda1b6615d0ac50 Mon Sep 17 00:00:00 2001 From: nolash Date: Sat, 30 Oct 2021 14:10:19 +0200 Subject: [PATCH] Add signer initializer --- chainlib/cli/wallet.py | 4 ++++ setup.cfg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chainlib/cli/wallet.py b/chainlib/cli/wallet.py index 3448e8f..4b5667b 100644 --- a/chainlib/cli/wallet.py +++ b/chainlib/cli/wallet.py @@ -27,6 +27,10 @@ class Wallet: self.use_checksum = False + def init(self): + self.signer = self.signer_constructor(self.keystore) + + def from_config(self, config): """Instantiates a signer from the registered signer class, using parameters from a processed configuration. diff --git a/setup.cfg b/setup.cfg index 618818f..02379b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib -version = 0.0.10a9 +version = 0.0.10a10 description = Generic blockchain access library and tooling author = Louis Holbrook author_email = dev@holbrook.no