Closed fazo96 closed 6 years ago
Well, what the solve here? Are we talking about forcing customers to have a chlu did before they can write a review?
right now a DID is used to sign reviews as issuer by the customer if they are unverified (they come from the crawlers)
If they are verified, the customer signs as both issuer and customer. If the DID used has been imported by logging in, in some cases it does not get published. To make sure that it's published, we just need to check before signing and publish it if it's not. Otherwise the signature can't be checked and the review record won't go through.
Long term we have to fix the DID thing so that it's not required
Commits https://github.com/ChluNetwork/chlu-ipfs-support/pull/93/commits/b384fb49bf05fe47bdd4d3fb056ef5f646513c66 and https://github.com/ChluNetwork/chlu-ipfs-support/pull/93/commits/1537a14ebdd51d22be159f2a9093d2b169eee739 have a partial fix, want to talk it over with @kulpreet before making a final decision
It's ok that the DID is required
If the DID was not published for some reason (like changing networks) the review record will never be valid