PQS and Explicit Disclosure
- WallaceKellyOP
Can Scribe be configured to store in the PQS the
created_event_blob(which is required for Explicit Disclosure)? - vladgangan 3
One needs to use the metadata filter to indicate which templates to capture metadata for (same rules as contract filters use):
$ scribe.jar pipeline -h ... --pipeline-filter-metadata string Filter expression determining which templates and interfaces to capture metadata for (default: !*)Captured data will be available in the
metadatacolumn in the query functions output:postgres=# select template_fqn, metadata from creates(); template_fqn | metadata --------------------------+---------- daml:PingPong:Ping | \x daml:PingPong:Ping | \x - WallaceKelly 1
And the full contents of the
metadatacolumn is what the docs call thecreated_event_blob? Or would I need to parse themetadataand extract thecreated_event_blob? - vladgangan 1
This is correct -
metadatacolumn’s type isbytea(byte array) in Postgres so it’s a direct storage forcreated_event_blobcontents. No need to parse it. - Artur_Poor 1
As of Scribe version 0.6.3, the
metadatacolumn is hexadecimal-encoded binary data. I presume Canton understands base64-encoded data ascreated_event_blob. The conversion from hexadecimal format to base64 is the following:select encode(metadata, 'base64') from lookup_contract('001796e46284...');Tested with PostgreSQL 14.17.