Party meta-data

Are there any plans to enable passing meta-data in the parties?

That is, along ‘entity’ and ‘access’, potentially having e.g. ‘metadata’, which is not taken into account for party resolution and can pass arbitrary strings defined at runtime.

Hi Krzys,

I understand you want to get token attributes into NPL, through a @api annotated permission call coming from an external services.
Your challenge is that token attributes cannot be accessed in NPL, regardless if they are in party claims or not. Only bound party or observer claims can be accessed in NPL.

If you want to be able to use token attributes in NPL, you can

  1. create a new user-specific protocol to use as entry point or as reference every time attributes change,
  2. or pass attributes as permission parameters.

I know this is very generic. I can probably help you more if you describe the source and target of those attributes.

Would it be fair to say that you are looking for the calling user’s token attributes in NPL?