-
Notifications
You must be signed in to change notification settings - Fork 26
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
How can I implement Proof of account with sdk? #47
Comments
davit555
changed the title
How can I implement Proof of account withs sdk?
How can I implement Proof of account with sdk?
Oct 3, 2022
I need same functionality . Do you able to solve it? @davit555 |
yes |
for anyone that needs that missing code part... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems every other sdk has such functionality (C#, Go, Node...) and I don't know how to verify proof of account with the python SDK ...
In particular
when js client sends the authentication with
.put("fcl.accountProof.resolver", resolver)
adding to the configwhere the resolver is something like this
const resolver = async () => { return { appIdentifier: "MyAppIdentifier", nonce: "75f8587e5bd5f9dcc9909d0dae1f0ac5814458b2ae129620502cb936fde7120a" }
then it gets some signature
{ "f_type": "Service", "f_vsn": "1.0.0", "type": "account-proof", "method": "DATA", "uid": "blocto#account-proof", "data": { "f_type": "account-proof", "f_vsn": "2.0.0", "signatures": [ { "f_type": "CompositeSignature", "f_vsn": "1.0.0", "addr": "0x46dfa5325a7bb983", "keyId": 1, "signature": "ce972efe49abc05a3bc8d71ff1e48e42d8d869a3ca30efb5e39ebbdb3f8a37fffb6f3bddd8eeacf803755c2726b64a9049be8360e9d2889ec914a301ab73da3d" } ], "address": "0x46dfa5325a7bb983", "timestamp": null, "nonce": "75f8587e5bd5f9dcc9909d0dae1f0ac5814458b2ae129620502cb936fde7120a" } }
then I need to somehow verify this signature from maybe
verify_user_signature
method but I don't know what to pass as message parameter...
do I need to encode the message like rlp or perform some other serialization....
Please help to figure out this
The text was updated successfully, but these errors were encountered: