ErgoAuthUtils added for EIP-28#157
Conversation
aslesarenko
left a comment
There was a problem hiding this comment.
I suggest to introduce SigmaProp wrapper (see one of the comments), move related serialization code there and use it where necessary instead of Address.
|
I have made the requested additions, but please note:
|
In blockchain ownership of a box is proved by showing that "the owner" can spend it. The User and the dApp follow this steps in order to authenticate access to The Box:
If we want to implement this protocol, we can basically clone Transaction and SignedTransaction implementation and simplify it. But, NOTE, the dApp becomes trusted party. In blockchain the verification is part of consensus, in dApp similar verification will not be part of consensus. |
This would introduce the problem that the AuthMessage is always the same. Hence anyone becoming aware of the signed message can authenticate to any place using the described scheme. Apart from that, we could do it like described, if I understood everything correctly this adds only a reduction of ErgoTree under the current context (which makes sense). At the moment, this reduction is implemented in |
This problem can be solved independently by using DHTuple schema, I'm not sure, but @scalahub may suggest some ideas. |
Adds ErgoAuthUtils utility methods for ErgoAuth ergoplatform/eips#53
On this occasion, ColdErgoClient was improved so that it does not need to be instantiated by using Explorer API model classes.