question: public void markAsSpent ( TransactionInput input ) { availableForSpending = false ; spentBy = input ; }
target:  Sets this objects availableForSpending flag to false and the spentBy pointer to the given input. If the input is null, it means this output was signed over to somebody else rather than one of our own keys.