aleph-im / aleph-sdk-python

Python SDK library for the Aleph.im network
MIT License
2 stars 4 forks source link

Should it be possible to instanciate accounts from the public key ? #21

Open hoh opened 1 year ago

hoh commented 1 year ago

This would provide a more object-oriented approach to signature verification, and most methods would still work.

Related to https://github.com/aleph-im/aleph-sdk-python/pull/19/files that creates a function verify_signature(...) outside of the class.

MHHukiewitz commented 1 year ago

We agreed to do this refactoring at a later stage, when besides signature verification, encryption is also an advertised (or at least well-tested) feature of the SDK, so that the resulting distinction between PrivateAccount/KeypairAccount and PublicAccount/PubKeyAccount has more utility for the end user.