火星链 火星链
Ctrl+D收藏火星链
首页 > Bitcoin > 正文

MENT:门罗币(XMR)锁定转账攻击细节分析

作者:

时间:1900/1/1 0:00:00

By:ISME}'-H'Content-Type:application/json'

公告 | 门罗币将于年内逐步取消长支付ID功能:11月26日,门罗币官方发布公告称,将于年内逐步取消长支付ID功能,而将升级成集成地址或子地址功能。逐步淘汰集成地址也在讨论之中,因此,鼓励用户直接升级使用子地址功能。门罗币官方表示取消长支付ID原因是:1.长支付ID可能会降低交易隐私性(支付ID过长在链上也可见);2.长支付ID需单独附加到交易中,且忘记附加还需获得单独服务以撤回交易,操作性更难;3.长支付ID将增加工作量;4.长支付ID不能批量提取。[2019/11/29]

{

"id":"0",

"jsonrpc":"2.0",

"result":{

"in":[{

"address":"77Vx9cs1VPicFndSVgYUvTdLCJEZw9h81hXLMYsjBCXSJfUehLa9TDW3Ffh45SQa7xb6dUs18mpNxfUhQGqfwXPSMrvKhVp",

"amount":200000000000,

"confirmations":1,

"double_spend_seen":false,

"fee":21650200000,

"height":153624,

"note":"",

"payment_id":"0000000000000000",

"subaddr_index":{

"major":1,

"minor":0

},

"suggested_confirmations_threshold":1,

"timestamp":1535918400,

"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a",

"type":"in",

"unlock_time":0

}]

}

}

get_payments

Getalistofincomingpaymentsusingagivenpaymentid.

Alias:?None.

Inputs:

payment_id?-string;??PaymentIDusedtofindthepayments(16charactershex).

Outputs:

payments?-listof:

payment_id?-string;???PaymentIDmatchingtheinputparameter.

tx_hash?-string;???TransactionhashusedasthetransactionID.

amount?-unsigned???int;Amountforthispayment.

block_height?-???unsignedint;Heightoftheblockthatfirstconfirmedthispayment.

动态 | 门罗币开发人员修补可对交易所和商家造成损害的漏洞:据CCN报道,门罗币的开发人员修补了一个漏洞,该漏洞允许攻击者“烧掉”加密货币交易所的存款,可能会给加密货币交易所和对XMR友好的商家造成重大损害。[2018/9/26]

unlock_time?-unsignedint;Time(inblockheight)until???thispaymentissafetospend.

subaddr_index?-???subaddressindex:

major?-unsigned???int;Accountindexforthesubaddress.

minor?-???unsignedint;Indexofthesubaddressintheaccount.

address?-string;???Addressreceivingthepayment;Base58representationofthepublickeys.

Example:

$curl-XPOSThttp://127.0.0.1:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_payments","params":{"payment_id":"60900e5603bf96e3"}}'-H'Content-Type:application/json'

{

"id":"0",

"jsonrpc":"2.0",

"result":{

"payments":[{

"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",

"amount":1000000000000,

"block_height":127606,

"payment_id":"60900e5603bf96e3",

"subaddr_index":{

"major":0,

"minor":0

},

"tx_hash":"3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f",

"unlock_time":0

}]

}

}

get_bulk_payments

Getalistofincomingpaymentsusingagivenpaymentid,oralistofpaymentsids,fromagivenheight.Thismethodisthepreferredmethodover?get_paymentsbecauseithasthesamefunctionalitybutismoreextendable.EitherisfineforlookinguptransactionsbyasinglepaymentID.

Alias:?None.

Circle的加密货币投资应用程序宣布支持门罗币:据coindesk消息,区块链初创公司Circle在其博客文章中宣布,将面向隐私的门罗币(monero)添加到其加密货币投资应用程序中。上周,该平台宣布将zcash添加到其交易应用。与应用程序中提供的其他加密货币一样,用户将可以购买或投资门罗币。[2018/5/8]

Inputs:

payment_ids?-array??of:string;PaymentIDsusedtofindthepayments(16charactershex).

min_block_height?-unsigned??int;Theblockheightatwhichtostartlookingforpayments.

Outputs:

payments?-listof:

payment_id?-string;???PaymentIDmatchingoneoftheinputIDs.

tx_hash?-string;???TransactionhashusedasthetransactionID.

amount?-???unsignedint;Amountforthispayment.

block_height?-???unsignedint;Heightoftheblockthatfirstconfirmedthispayment.

unlock_time?-unsignedint;Time(inblockheight)until???thispaymentissafetospend.

subaddr_index?-subaddress???index:

major?-???unsignedint;Accountindexforthesubaddress.

minor?-???unsignedint;Indexofthesubaddressintheaccount.

address?-string;???Addressreceivingthepayment;Base58representationofthepublickeys.

Example:

$curl-XPOSThttp://127.0.0.1:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_bulk_payments","params":{"payment_ids":,"min_block_height":"120000"}}'-H'Content-Type:application/json'

{

"id":"0",

"jsonrpc":"2.0",

"result":{

"payments":[{

"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",

"amount":1000000000000,

"block_height":127606,

"payment_id":"60900e5603bf96e3",

"subaddr_index":{

"major":0,

"minor":0

},

"tx_hash":"3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f",

"unlock_time":0

}]

}

}

get_transfer_by_txid

Showinformationaboutatransferto/fromthisaddress.

Alias:?None.

Inputs:

txid?-string;??TransactionIDusedtofindthetransfer.

account_index?-unsigned??int;(Optional)Indexoftheaccounttoqueryforthetransfer.

Outputs:

transfer?-JSON??objectcontainingpaymentinformation:

address?-string;???Addressthattransferredthefunds.Base58representationofthepublic???keys.

amount?-???unsignedint;Amountofthistransfer.

confirmations?-???unsignedint;Numberofblockminedsincetheblockcontainingthis???transaction(orblockheightatwhichthetransactionshouldbeaddedto???ablockifnotyetconfirmed).

destinations?-array???ofJSONobjectscontainingtransferdestinations:

amount?-???unsignedint;Amounttransferredtothisdestination.

address?-???string;Addressforthisdestination.Base58representationofthepublic???keys.

double_spend_seen?-???boolean;Trueifthekeyimage(s)forthetransferhavebeenseenbefore.

fee?-???unsignedint;Transactionfeeforthistransfer.

height?-???unsignedint;Heightofthefirstblockthatconfirmedthistransfer.

note?-string;???Noteaboutthistransfer.

payment_id?-string;???PaymentIDforthistransfer.

subaddr_index?-JSON???objectcontainingthemajor&minorsubaddressindex:

major?-???unsignedint;Accountindexforthesubaddress.

minor?-???unsignedint;Indexofthesubaddressundertheaccount.

suggested_confirmations_threshold?-???unsignedint;Estimationoftheconfirmationsneededforthetransaction???tobeincludedinablock.

timestamp?-???unsignedint;POSIXtimestampfortheblockthatconfirmedthistransfer???(ortimestampsubmissionifnotminedyet).

txid?-string;???TransactionIDofthistransfer(sameasinputTXID).

type?-string;???Typeoftransfer,oneofthefollowing:"in","out",???"pending","failed","pool"

unlock_time?-unsignedint;Numberofblocksuntil???transferissafelyspendable.

Example:

$curl-XPOSThttp://localhost:18082/json_rpc-d'{"jsonrpc":"2.0","id":"0","method":"get_transfer_by_txid","params":{"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a"}}'-H'Content-Type:application/json'

{

"id":"0",

"jsonrpc":"2.0",

"result":{

"transfer":{

"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt",

"amount":300000000000,

"confirmations":1,

"destinations":[{

"address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o",

"amount":100000000000

},{

"address":"77Vx9cs1VPicFndSVgYUvTdLCJEZw9h81hXLMYsjBCXSJfUehLa9TDW3Ffh45SQa7xb6dUs18mpNxfUhQGqfwXPSMrvKhVp",

"amount":200000000000

}],

"double_spend_seen":false,

"fee":21650200000,

"height":153624,

"note":"",

"payment_id":"0000000000000000",

"subaddr_index":{

"major":0,

"minor":0

},

"suggested_confirmations_threshold":1,

"timestamp":1535918400,

"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a",

"type":"out",

"unlock_time":0

}

}

}

点击查看官方文档:

https://www.getmonero.org/resources/developer-guides/wallet-rpc.html

标签:ENTMENTYMENPAYWaves EnterprisequickpaymentchainBSC PaymentsXPAY

Bitcoin热门资讯
OIN:他说比特币是避险资产,我要信吗?

从今年起,关于比特币是否属于避险资产的问题越来越多地被人提起,而在几年之前,大众的第一反应还是:“比特币是否属于?”可见,变化还是挺大的.

1900/1/1 0:00:00
TIE:科普 | 从历次升级看以太坊的足迹

纵观全局,区块链技术出现的时间并不久。尽管有关区块链的基本概念已经被研究了数十年,但直到2008年比特币诞生之后,人们才相信这些概念确实可以组合到一起、创造出可用的产品.

1900/1/1 0:00:00
BTC:巴比特专栏 | HOLder——区块链行业的丈母娘

今年年初,气候宜人,正是谈恋爱的季节。我一个朋友忧心忡忡地问我有没有半年内让30万变100万的投资机会。“你想钱想疯了啊。”“不是,是我准丈母娘非要让我买房,不然不许女儿嫁给我.

1900/1/1 0:00:00
CUR:美国SEC批准数字证券平台Securitize注册为转让代理机构

据Coindesk报道,8月21日,区块链代币发行技术提供商Securitize宣布已经注册成为美国证券交易管理局的证券“转让代理”。公司表示此举将提高认可度.

1900/1/1 0:00:00
ALI:以太坊2.0:如何实现最终性?

前言如果你在了解有关以太坊2.0的过程中遇到过justification(证明)和fnalization(最终性)这两个术语,但却不知道它们是什么意思,希望本文能给你一些启示.

1900/1/1 0:00:00
SDT:BTC高位洗盘,中线行情仍保留希望

作者|哈希派分析团队数据:火币24小时BTC净流入3079万美元,资金回流加速:据AIcoin显示,截至11月10日11时,火币全球站24小时净流入3079万美元BTC.

1900/1/1 0:00:00