Exemplo n.º 1
0
def login(username, password):
    st = steem.Steem(['https://ws.testnet3.golos.io'])
    if not st.steemd.login(username, password):
        return None

    private_key = PasswordKey(username, password, 'posting')
    st.commit.wallet.setKeys(str(private_key.get_private()))
    return User(username, password, st)
Exemplo n.º 2
0
    def __init__(self):
        self._steem = steem.Steem(['https://ws.testnet3.golos.io'])
        self._username = '******'
        self._password = '******'
        if not self._steem.steemd.login(self._username, self._password):
            raise RuntimeError('ChainMaster login failed!')

        key = PasswordKey(self._username, self._password, 'posting')
        self._steem.commit.wallet.setKeys(str(key.get_private()))