base/lib/stellar/transaction_v0.rb
def signature_base
      tx = Stellar::Transaction.from_xdr(
        # TransactionV0 is a transaction with the AccountID discriminant
        # stripped off, we need to put it back to build a valid transaction
        # which we can use to build a TransactionSignaturePayloadTaggedTransaction
        Stellar::PublicKeyType.to_xdr(Stellar::PublicKeyType.public_key_type_ed25519) + to_xdr
      )

      tagged_tx = Stellar::TransactionSignaturePayload::TaggedTransaction.new(:envelope_type_tx, tx)

      Stellar::TransactionSignaturePayload.new(
        network_id: Stellar.current_network_id,
        tagged_transaction: tagged_tx
      ).to_xdr
    end
# Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0
# we need a Transaction to generate the signature base
Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0
we need a Transaction to generate the signature base
Backwards Compatibility : Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0 we need a Transaction to generate the signature base
def signature_base
      tx = Stellar::Transaction.from_xdr(
        Stellar::PublicKeyType.to_xdr(Stellar::PublicKeyType.public_key_type_ed25519) + to_xdr
      )
      tagged_tx = Stellar::TransactionSignaturePayload::TaggedTransaction.new(:envelope_type_tx, tx)
      Stellar::TransactionSignaturePayload.new(
        network_id: Stellar.current_network_id,
        tagged_transaction: tagged_tx
      ).to_xdr
    end
def signature_base tx = Stellar :: Transaction . from_xdr ( Stellar :: PublicKeyType . to_xdr ( Stellar :: PublicKeyType . public_key_type_ed25519 ) + to_xdr ) tagged_tx = Stellar :: TransactionSignaturePayload :: TaggedTransaction . new ( :envelope_type_tx , tx ) Stellar :: TransactionSignaturePayload . new ( network_id : Stellar . current_network_id , tagged_transaction : tagged_tx ) . to_xdr end
Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0
we need a Transaction to generate the signature base
Backwards Compatibility : Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0 we need a Transaction to generate the signature base
# TransactionV0 is a transaction with the AccountID discriminant # stripped off, we need to put it back to build a valid transaction # which we can use to build a TransactionSignaturePayloadTaggedTransaction