Re: New SVG-based renderMethod examples in VC Playground

Yes, perfect 

We will be proposing that hash linked renderer for supply chain uses cases where there will be a high volume of credentials with the same rendering 

Thanks ;)

Steven Capell
Mob: 0410 437854

> On 6 Aug 2024, at 8:19 AM, Manu Sporny <msporny@digitalbazaar.com> wrote:
> 
> On Mon, Aug 5, 2024 at 5:57 PM Steve Capell <steve.capell@gmail.com> wrote:
>> Nice to see rendering getting more attention :)
> 
> It's a vital part of the ecosystem. :)
> 
>> Would you say that the concern of seeing exactly what the issuer intended can be met either by embedding the template or by embedding a hash-link to a template?
> 
> Yes, exactly. This is one of those things we'd like to try and improve
> upon. The great thing about embedding all the data in the VC is that
> it is self contained. The bad thing about doing that is now you've got
> a 2MB VC in your wallet where most of that payload size is the
> image/SVG data that is in thousands to millions of other wallets. :)
> 
> Also, while the renderings look pretty decent, SVG has its limitations
> (like no automatic text line wrapping!?). The team also struggled with
> field formatters... turns out XML DateTimeStamp values look really
> ugly when you render them, and sometimes you want to convert a
> measurement that purely in inches to feet and inches (but only if
> you're in one of the sad countries that is not on metric yet)... IOW,
> sometimes you want something more human-readable, especially when
> you're rendering things for humans.
> 
> We've learned enough to date to see that the general SVG template
> pattern can be expanded to other vector display formats, including
> PDF, which might be a better choice for rendering templates (since you
> can use pdf.js to render it to an HTML Canvas). So, generalizing the
> approach beyond SVG seems to be in the cards for the next iteration.
> 
> So, all that to say, yes -- external links that have cryptographic
> hashes and media types associated with them are a promising way
> forward. That would end up looking something like this:
> 
>  "renderMethod": [{
>    "id": "https://example.edu/credentials/BachelorDegree.pdf",
>    "type": "RenderingTemplate2024",
>    "mediaType": "application/pdf",
>    "digestMultibase": "zQmAPdhyxzznFCwYxAp2dRerWC85Wg6wFl9G270iEu5h6JqW"
>    "name": "Portrait Mode",
>    "css3MediaQuery": "@media (orientation: portrait)",
>  }]
> 
> Did that answer your question, Steven?
> 
> -- manu
> 
> --
> Manu Sporny - https://www.linkedin.com/in/manusporny/
> Founder/CEO - Digital Bazaar, Inc.
> https://www.digitalbazaar.com/

Received on Monday, 5 August 2024 22:47:25 UTC