I'm trying to to implement an agent that can issue a claim certificate that would be based on a parameter supplied by the requester. So I started from the ACME example, and something must happen somewhere in the Acme code between those two commands:
Alice> send claim Job-Application to Acme [Alice can pass some parameter to Acme]
Alice> request claim Job Certificat [Acme responds with a certificate]
As an example of claim depending on a parameter, suppose for instance the following example:
1) Alice send a claim to use 3 days vacations
2) Acme must check the balance and vacations days left, and only then can send an "approve" certificat.
Where would be the best place 1) to verify the parameter supplied by Alice (enough vacations days left) and 2) create the claim that depends on the parameter (approved days off).
Somehow, it seems that this would be in
def _addAtrribute(self, schemaKey, proverId, link) -> Dict[str, Any]:
but this function is not passed the parameter supplied by Alice.