def test_sign_tx_account_merge_op(client):
    op = messages.StellarAccountMergeOp()
    op.destination_account = "GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V"

    tx = _create_msg()

    response = stellar.sign_tx(client, tx, [op], ADDRESS_N, NETWORK_PASSPHRASE)

    assert (response.public_key.hex() ==
            "15d648bfe4d36f196cfb5735ffd8ca54cd4b8233f743f22449de7cf301cdb469")
    assert (
        b64encode(response.signature) ==
        b"2R3Pj89U+dWrqy7otUrLLjtANjAg0lmBQL8E+89Po0Y94oqZkauP8j3WE7+/z7vF6XvAMLoOdqRYkUzr2oh7Dg=="
    )
Exemple #2
0
def test_sign_tx_account_merge_op(client):
    op = messages.StellarAccountMergeOp()
    op.destination_account = "GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V"

    tx = _create_msg()

    response = stellar.sign_tx(client, tx, [op], ADDRESS_N, NETWORK_PASSPHRASE)

    assert (response.public_key.hex() ==
            "15d648bfe4d36f196cfb5735ffd8ca54cd4b8233f743f22449de7cf301cdb469")
    assert (
        b64encode(response.signature) ==
        b"2R3Pj89U+dWrqy7otUrLLjtANjAg0lmBQL8E+89Po0Y94oqZkauP8j3WE7+/z7vF6XvAMLoOdqRYkUzr2oh7Dg=="
        # d91dcf8fcf54f9d5abab2ee8b54acb2e3b40363020d2598140bf04fbcf4fa3463de28a9991ab8ff23dd613bfbfcfbbc5e97bc030ba0e76a458914cebda887b0e
    )
Exemple #3
0
    def test_sign_tx_account_merge_op(self):
        self.setup_mnemonic_nopin_nopassphrase()

        op = proto.StellarAccountMergeOp()
        op.destination_account = 'GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V'

        tx = self._create_msg()

        response = self.client.stellar_sign_transaction(
            tx, [op], self.ADDRESS_N, self.NETWORK_PASSPHRASE)

        assert hexlify(
            response.public_key
        ) == b'15d648bfe4d36f196cfb5735ffd8ca54cd4b8233f743f22449de7cf301cdb469'
        assert b64encode(
            response.signature
        ) == b'2R3Pj89U+dWrqy7otUrLLjtANjAg0lmBQL8E+89Po0Y94oqZkauP8j3WE7+/z7vF6XvAMLoOdqRYkUzr2oh7Dg=='
Exemple #4
0
    def test_sign_tx_account_merge_op(self):
        self.setup_mnemonic_nopin_nopassphrase()

        op = proto.StellarAccountMergeOp()
        # GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V
        op.destination_account = unhexlify(
            '5d55642466b185b843152e9e219151dbc5892027ec40101a517bed5ca030c2e0')

        tx = self._create_msg()

        response = self.client.stellar_sign_transaction(
            tx, [op], self.ADDRESS_N, self.get_network_passphrase())

        assert hexlify(
            response.public_key
        ) == b'15d648bfe4d36f196cfb5735ffd8ca54cd4b8233f743f22449de7cf301cdb469'
        assert b64encode(
            response.signature
        ) == b'gjoPRj4sW5o7NAXzYOqPK0uxfPbeKb4Qw48LJiCH/XUZ6YVCiZogePC0Z5ISUlozMh6YO6HoYtuLPbm7jq+eCA=='