Knowing who acted with what parties
- Leonid_RozenbergOP 1
If I have a token letting me act as
p1andp2, using which I exercise a choice wherep1is the controller, is it recorded or observable via the ledger API that I acted asp1andp2.A potential use case is a
companyandemployeesituation. Acompanyissues toemployeea JWT with the ability to act as two parties; their personal (for example seeing tasks that the employee has to do) and thecompanytoken so that they can do things on their behalf. Can the company then build some off-ledger solution that would record which employee did what. For example, was it Alice or Bob that purchased 100 staplers for the office?I am aware that one could have explicit delegation contracts that would model this on the ledger.
- cocreature 1
You cannot observe the
actAsparties via the ledger API directly at the moment. In general, it is stored on the submitting participant and you can observe it indirectly via command completions (which are filtered by the submitters) and command deduplication which happens by submitter.
But if you need direct access, storing it in some kind of middleware is your best option. - Leonid_Rozenberg 1
cocreature:you can observe it indirectly via command completions (which are filtered by the submitters)
The
companycan create an application where they subscribe as employeeEand if they notice that an action thatcompanyis completed on this stream then they know thatEperformed it on their behalf? - cocreature 2
If they subscribe to the completion stream as party E and application ID A then they should receive completions for all for all commands submitted on this participant with application ID A where E is one of the submitters.
- Leonid_Rozenberg 1
Thank you!