Closed PJUllrich closed 5 years ago
The point of this is that in the way we've currently set it up, all DIDs go to the ledger, which means that a TrustAnchor needs to write them, this is we have the distinction.
This issue also includes updating the roles to be proper (currently, onboarding allows for TRUST_ANCHOR, whereas only verinym should have this. This would allow simplifying the code as well.
Was refactored.
We have onboarding functions in 2 different classes.
createConnectionRequest
andacceptConnectionResponse
are inTrustAnchor
acceptConnectionRequest
is inWalletOwner
In the University backend code, the
createConnectionRequest
andacceptConnectionResponse
functions are called via theIssuer
class, which is a child class ofTrustAnchor
. In the Student backend, theacceptConnectionRequest
is called via theProver
class, which is a child class ofWalletOwner
.Should we maybe streamline the functions and the calls so that it becomes more clear where to find the onboarding functionality? Since
TrustAnchor
inherits formWalletOwner
, maybe we can give the onboarding functionality toWalletOwner
?