Answer:
The _creates table in PQS has a witness field for every created contract.
Using an SQL WHERE EXISTS clause you can filter the template tables for visibility of a party provided they are a witness of that contract_id in the _creates table.
Answer:
The _creates table in PQS has a witness field for every created contract.
Using an SQL WHERE EXISTS clause you can filter the template tables for visibility of a party provided they are a witness of that contract_id in the _creates table.