maraoz/proofofexistence

How to set SECRET_ADMIN_PATH and CALLBACK_SECRET

Closed this issue · 0 comments

Great work on POE! I have some problems with call back and secret.py. I would be much appreciated if you can help me : )

1)PAYMENT_ADDRESS and PAYMENT_PRIVATE_KEY.
Is the payment address the default one in my blockchain.info wallet?and is PAYMENT_PRIVATE_KEY the related one with payment address exported from blockchain.info wallet.
I have noticed that it would be decoded by base58 in encoding.py, so I managed to generate a base58 format private with bitaddress.org, which starts with 5 and has 51characters.

2)And I have also noticed that SECRET_ADMIN_PATH is part of some URL in admin.py. But I'm not so sure about "/autopay ".Would it automatically pay something?
I have noticed that all OP_RETURNs are embedded within a tx which goes from 0.0001 to an unparsed address.

3)About the callback url.
And because in secret.py, there is no other URL set entries, so is SECRET_ADMIN_PATH part of the callback URL?
Or is the callback url created in another way?

4)How to set CALLBACK_SECRET SECRET_ADMIN_PATH and the related http notification callbackURL input aera in blockchain.info right.

5)is everything working in this way:
a)file hash generated in local browser,doctype added as marker bytes, hex it and add OP_RETRUN
before it. And this becomes a script.
b)use wif privatekey to generate an address to receive 5mbtc as well as 0.0001btc OP_RETURN tx.
(Here I have a question: is there only one tx or two to embed the OP_RETURN metadata?)
C)create a tx (from PAYMENT_ADDRESS to this wif generated address, 0.0001 btc?)with blockchain info api without broadcasting it.Depack it and embed OP_RETURN script into it, then repack it.
d)listening to the callback URL, if 5mbtc is received, then automatically broadcast this raw tx via "insight bitpay".(if so there are two txs)

Key problems:
1)how to set callback URL both in secrets.py and blockchain.info?
2)How to set secret admin path?
3)How to set ENCRYPTED WALLET's path on Ubuntu?(offline version)
4)how to set PAYMENT_ADDRESS and PAYMENT_PRIVATE_KEY?

thank you maraoz