I’m trying to login to the safe network using python.
I’ve compiled safe_authenticator using
cargo build --release
Using the ctypes python module I can import the .so file into python:
authenticator = cdll.LoadLibrary("/path/to/libsafe_authenticator.so")
But I can’t call
authenticator.login without the app crashing (segfault).
When I look at the input arguments for login I start having trouble.
The first two arguments are simple enough:
secret_2 (presumably corresponding to ‘secret’ and ‘password’ in the UI?) which are just normal strings.
The third fourth and fifth arguments seem impossible to satisfy.
Third arg is type
tokio_core::reactor::Handle which doesn’t seem to be exported
Fourth arg is type
event_loop::CoreMsgTx also not exported
Fifth arg is type
event::NetworkTx also not exported
Are these arguments possible to supply in python? Is it possible to login to the network using python? Am I even approaching this the right way?