1. A method for identifying a sketching matrix used by a linear sketch comprising: receiving an initial output of the linear sketch; generating a query vector; inputting the query vector into the linear sketch; receiving an revised output of the linear sketch based on inputting the query vector; iteratively repeating the steps of generating the query vector, inputting the query vector into the linear sketch, and receiving an revised output of the linear sketch based on inputting the query vector until the sketching matrix used by the linear sketch can be identified.