code: function addInput(input){
  		total_amount += input.amount;
  		var objInputWithProof = {input: input};
  		if (objAsset && objAsset.is_private){ // for type=payment only
  			var spend_proof = objectHash.getBase64Hash({
  				asset: asset,
  				amount: input.amount,
  				address: input.address,
  				unit: input.unit,
  				message_index: input.message_index,
  				output_index: input.output_index,
  				blinding: input.blinding
  			});
  			var objSpendProof = {spend_proof: spend_proof};
  			if (bMultiAuthored)
  				objSpendProof.address = input.address;
  			objInputWithProof.spend_proof = objSpendProof;
  		}
  		if (!bMultiAuthored || !input.type)
  			delete input.address;
  		delete input.amount;
  		delete input.blinding;
  		arrInputsWithProofs.push(objInputWithProof);
  	}
docs: adds element to arrInputsWithProofs