当前位置: 首页 > 软件库 > Web3 > 开源货币/比特币 >

xmr-btc-atomic-swap

授权协议 CC-BY-4.0 License
开发语言 Python
所属分类 Web3、 开源货币/比特币
软件类型 开源软件
地区 不详
投 递 者 艾嘉石
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Bitcoin & Monero Cross-chain Atomic Swap

ia.cr/2020/1126

Abstract

In blockchains where hashed timelock contracts are possible atomic swaps are already deployed, but when one blockchain doesn't have this capability it becomes a challenge. This protocol describes how to achieve atomic swaps between Bitcoin and Monero with two transactions per chain without trusting any central authority, servers, nor the other swap participant. We propose a swap between two participants, one holding bitcoin and the other monero, in which when both follow the protocol their funds are not at risk at any moment. The protocol does not require timelocks on Monero side nor script capabilities but does require two proofs of knowledge of equal discrete logarithm across the edward25519 and the secp256k1 groups and ECDSA one-time VES.

About

This research project have been sponsored by the Monero Community and initiated by TrueLevel SA in 2018, developed by h4sh3d and presented at 36C3 with zkao.

  • (1)安装依赖项 #安装libtool、libboost 、libevent、qt、protobuf、libqrencode、libssl yum install -y boost-devel qt-devel protobuf-devel qrencode-devel libevent-devel libtool openssl-devel #安装libdb wget 'http://

  • 在前面的多处理器编程艺术文章中,谈到了lock free算法。多线程编程通常碰到的问题是很多操作的非原子性(non-atomic)。 本文通过程序实例,说明多线程中由于访问同一数据变量可能造成写丢失的情况。并通过mutex、atomic、compare_and_swap逻辑完成对于多线程的控制。 1.非线程安全方式 多个线程并发地将一个变量相加n次。 volatile unsigned long

  • //启动命令 ./bitcoind  --daemon --datadir=/btcdata/ -conf=/btccoin.conf 钱包配置文件添加  rpcbind=0.0.0.0 //查询区块同步 ./*cli -conf=/btccoin.conf  getblockchaininfo //杀死进程 kill -s SIGINT pid bsv启动 ./bitcoind --daemon

  • 还是直接贴代码: ​ DumpedPrivateKey dumpedPrivateKey = DumpedPrivateKey.fromBase58(MainNetParams.get(), privateKey); ECKey ecKey = dumpedPrivateKey.getKey(); String address = ecKey.toAddress(M

  • 价值投资的程式化观点通常会导致较低的会计倍数,但在我们追求以低于其内在价值的价格进行资产交易时,我们会尝试对“价值”进行更广泛的定义。我们的方法是一种概率方法,这意味着我们试图考虑未来可能影响资产价值的各种潜在状态。然后,我们确定资产在少数代表性情景下的价值,将每个情景的价值乘以我们认为它可能发生的概率,然后将这些值相加得到“价值的集中趋势”。我们对比特币的思考过程是我们概率价值方法的一个代表性例

  • 在比特币的生命周期中,将会有21,000,000个比特币被发行。所有的比特币均来自创建新区块时对矿工的奖励。 第一个创世区块的奖励设定为50个比特币,此后每新建210,000个区块,奖励减半。 区块所得 = 奖励 + 交易费用 当区块链数量除以210000大于等于64时,奖励金额直接返回0。 奖励金在2012年当时候从50比特币减半为25比特币,2016年从25比特币减半为12.5b比特币。大概2

 相关资料
  • xmr

    Xmr Monero node Xmr is an implementation of the Monero cryptocurrency. It aims to be a fullMonero node with wallet functionality. This is a work in progress that is not yet functional Building Xmr Xmr

  • Cashier-BTC v2 refactored and improved Tests: Self-hosted Node.js Bitcoin payment gateway. Provides REST API (microservice).Process Bitcoin payments on your end, securely, with no comission. Request p

  • BTC RPC Explorer Self-Hosted Bitcoin explorer for anyone running Bitcoin Core. This is a self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own Bitcoin node. It is easy to ru

  • cryptonote-xmr-pool High performance Node.js (with native C addons) mining pool for CryptoNote based coins such as Bytecoin, DuckNote, Monero, QuazarCoin, Boolberry, Dashcoin, etc..Comes with lightwei

  • import "sync/atomic" atomic包提供了底层的原子级内存操作,对于同步算法的实现很有用。 这些函数必须谨慎地保证正确使用。除了某些特殊的底层应用,使用通道或者sync包的函数/类型实现同步更好。 应通过通信来共享内存,而不通过共享内存实现通信。 被SwapT系列函数实现的交换操作,在原子性上等价于: old = *addr *addr = new return old Com

  • Atomic 是一个用于运行 Docker 容器的原型系统,使用不可变的基础设施来部署和扩展你的容器化应用。该项目主要包括 Atomic Host、Team Silverblue 和各种容器工具。 Atomic的目标是提供一个高层次的、连贯的系统入口,并填补Linux容器实现的空白。对于 Docker 来说,atomic 可以使其更容易与特殊类型的容器进行交互,如超级特权调试工具等。 Atomic