publicJwkSync method
Synchronous accessor for the public JWK — handy when acting as a test
issuer (e.g. serving a jwt-vc-issuer JWK set).
Implementation
Map<String, dynamic> publicJwkSync() {
final q = _public.Q!;
return {
'kty': 'EC',
'crv': 'P-256',
'x': b64uEncode(_be32(q.x!.toBigInteger()!)),
'y': b64uEncode(_be32(q.y!.toBigInteger()!)),
};
}