Skip to content
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

receipt verification function #55

Open
jackzhp opened this issue Sep 11, 2020 · 1 comment
Open

receipt verification function #55

jackzhp opened this issue Sep 11, 2020 · 1 comment

Comments

@jackzhp
Copy link

jackzhp commented Sep 11, 2020

I think what we need is a receipt verification function.
input: the target BTC address, amount of BTC received at the target BTC address, number of confirmations
output: true if the amount of BTC has been received at the target BTC address with the specified number of confirmations; false otherwise.

a subroutine is also needed:
input: BTC tx hash
output: how deep is the tx embedded in the main branch? of course, the returned value reflects the "current" status. for a current ETH block height, there is a corresponding BTC block height.

any comment? can we have such a function?

and there is an ultimate question: why do we trust the function? is it trustworthy?

@jackzhp jackzhp changed the title a function receipt verification function Sep 11, 2020
@staccDOTsol
Copy link

While Ethereum is primarily focused on its native cryptocurrency Ether (ETH), it is possible to interact with other blockchain networks, such as Bitcoin (BTC), through various mechanisms like smart contracts or oracles. However, it's important to note that Ethereum does not natively support Bitcoin transactions or provide direct access to Bitcoin's blockchain.

To achieve the functionality you described, you would need to rely on external services or oracles that bridge the Ethereum and Bitcoin networks. These services can provide the necessary data and verification mechanisms to confirm BTC transactions and their confirmations.

Regarding the trustworthiness of such a function, it ultimately depends on the implementation and the reputation of the service or oracle providing it. It's crucial to thoroughly research and vet the service or oracle you plan to use to ensure its reliability and security. Additionally, it's always a good practice to review the code and seek third-party audits if available.

Remember, when interacting with external networks or relying on third-party services, it's important to consider the potential risks and trade-offs involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jackzhp @staccDOTsol and others