-
Notifications
You must be signed in to change notification settings - Fork 30
ErgoAuthUtils added for EIP-28 #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
aslesarenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to introduce SigmaProp wrapper (see one of the comments), move related serialization code there and use it where necessary instead of Address.
common/src/main/java/org/ergoplatform/appkit/ErgoAuthUtils.java
Outdated
Show resolved
Hide resolved
appkit/src/test/scala/org/ergoplatform/appkit/ErgoAuthSpec.scala
Outdated
Show resolved
Hide resolved
appkit/src/test/scala/org/ergoplatform/appkit/ErgoAuthSpec.scala
Outdated
Show resolved
Hide resolved
|
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.