6月 262018
 

创世账号信息

AccountID:rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh
MasterSeed/Secret:snoPBrXtMeMyMHUVTgbuqAfg1SUTb
TotalCoins:100000000000000000

为创世账号生成和启用RegularKey并禁用MasterSeed
1)生成RegularKey

curl -k -H 'Content-Type: application/json' -X POST -d '
{
"method": "wallet_propose",
"params": [
{
"key_type": "secp256k1"
}
]
}' http://localhost:8008
{"result":{"account_id":"ratab3YWDfFXn5HXSpeHmU8ybZ9MNMJLHR","key_type":"secp256k1","master_key":"PIT FED BAY JUKE TRUE SUB NEST ADDS BURY VETO HANG WIRE","master_seed":"sawgEVr2AyVsekSKdng9yvD2hxHTd","master_seed_hex":"F93759FA841DA9C37C04EF5119680234","public_key":"aBRrpkhvwV66hCtNpZcuz3vJvRZLNbUiP3nLDavj6Z5jJB21G7GR","public_key_hex":"0390D540145E7FEABA03948D2E2F438A5F5BEB9DAC6CDC1CFE8F09C4FB1EBD68A3","status":"success"}}

2)为创世账号启用RegularKey

curl -k -H 'Content-Type: application/json' -X POST -d '
{
"method": "sign",
"params": [
{
"tx_json": {
"TransactionType": "SetRegularKey",
"Account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"RegularKey": "ratab3YWDfFXn5HXSpeHmU8ybZ9MNMJLHR"
},
"secret": "snoPBrXtMeMyMHUVTgbuqAfg1SUTb"
}
]
}' http://localhost:8008
{"result":{"status":"success","tx_blob":"1200052280000000240000000168400000000000000A73210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD02074473045022100C9D3479A4CBA7620CBDFFE34B60DAA9566FF429235D3D9DB6DB9DA8A57AF7F02022042B43C0975C1B130654E53AEAAFBB37420FE82B06FF2F673F8D7D14BB45B85728114B5F762798A53D543A014CAF8B297CFF8F2F937E888144082820A7E5AB5992534142CEA0D78151D9E9915","tx_json":{"Account":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","Fee":"10","Flags":2147483648,"RegularKey":"ratab3YWDfFXn5HXSpeHmU8ybZ9MNMJLHR","Sequence":1,"SigningPubKey":"0330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020","TransactionType":"SetRegularKey","TxnSignature":"3045022100C9D3479A4CBA7620CBDFFE34B60DAA9566FF429235D3D9DB6DB9DA8A57AF7F02022042B43C0975C1B130654E53AEAAFBB37420FE82B06FF2F673F8D7D14BB45B8572","hash":"DE38DC47C9CDF7B7576F7AC0C6F075C7BF18824B29A3EEAA2351E6E841B07C54"}}}
{
"result" : {
"engine_result" : "tesSUCCESS",
"engine_result_code" : 0,
"engine_result_message" : "The transaction was applied. Only final in a validated ledger.",
"status" : "success",
"tx_blob" : "1200052280000000240000000168400000000000000A73210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD02074473045022100C9D3479A4CBA7620CBDFFE34B60DAA9566FF429235D3D9DB6DB9DA8A57AF7F02022042B43C0975C1B130654E53AEAAFBB37420FE82B06FF2F673F8D7D14BB45B85728114B5F762798A53D543A014CAF8B297CFF8F2F937E888144082820A7E5AB5992534142CEA0D78151D9E9915",
"tx_json" : {
"Account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"Fee" : "10",
"Flags" : 2147483648,
"RegularKey" : "ratab3YWDfFXn5HXSpeHmU8ybZ9MNMJLHR",
"Sequence" : 1,
"SigningPubKey" : "0330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020",
"TransactionType" : "SetRegularKey",
"TxnSignature" : "3045022100C9D3479A4CBA7620CBDFFE34B60DAA9566FF429235D3D9DB6DB9DA8A57AF7F02022042B43C0975C1B130654E53AEAAFBB37420FE82B06FF2F673F8D7D14BB45B8572",
"hash" : "DE38DC47C9CDF7B7576F7AC0C6F075C7BF18824B29A3EEAA2351E6E841B07C54"
}
}
}

3)发起AccountSet交易禁用创世账号的MasterSeed(最后一次使用MasterSeed)(asfDisableMaster)

curl -k -H 'Content-Type: application/json' -X POST -d '
{
"method": "sign",
"params": [
{
"offline": false,
"secret": "snoPBrXtMeMyMHUVTgbuqAfg1SUTb",
"tx_json": {
"Account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"SetFlag": 4,
"TransactionType": "AccountSet"
},
"fee_mult_max": 10
}
]
}' localhost:8008
{"result":{"status":"success","tx_blob":"1200032280000000240000000220210000000468400000000000000A73210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD0207446304402205D6C52A67E5A596955B4E9466B8869762EA9D655EAE4F03FD901ACE2DB506936022050CB5DDF494BF7625516814DDAD938E329E4147FE34CB6AC1AD433719E21FC8B8114B5F762798A53D543A014CAF8B297CFF8F2F937E8","tx_json":{"Account":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","Fee":"10","Flags":2147483648,"Sequence":2,"SetFlag":4,"SigningPubKey":"0330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020","TransactionType":"AccountSet","TxnSignature":"304402205D6C52A67E5A596955B4E9466B8869762EA9D655EAE4F03FD901ACE2DB506936022050CB5DDF494BF7625516814DDAD938E329E4147FE34CB6AC1AD433719E21FC8B","hash":"328C416EBD9B8BD336018D4ED1D57FBD591309560BC5D7F915A80F8678456981"}}}
{
"result" : {
"engine_result" : "tesSUCCESS",
"engine_result_code" : 0,
"engine_result_message" : "The transaction was applied. Only final in a validated ledger.",
"status" : "success",
"tx_blob" : "1200032280000000240000000220210000000468400000000000000A73210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD0207446304402205D6C52A67E5A596955B4E9466B8869762EA9D655EAE4F03FD901ACE2DB506936022050CB5DDF494BF7625516814DDAD938E329E4147FE34CB6AC1AD433719E21FC8B8114B5F762798A53D543A014CAF8B297CFF8F2F937E8",
"tx_json" : {
"Account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"Fee" : "10",
"Flags" : 2147483648,
"Sequence" : 2,
"SetFlag" : 4,
"SigningPubKey" : "0330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020",
"TransactionType" : "AccountSet",
"TxnSignature" : "304402205D6C52A67E5A596955B4E9466B8869762EA9D655EAE4F03FD901ACE2DB506936022050CB5DDF494BF7625516814DDAD938E329E4147FE34CB6AC1AD433719E21FC8B",
"hash" : "328C416EBD9B8BD336018D4ED1D57FBD591309560BC5D7F915A80F8678456981"
}
}
}

4)查看创世账号的RegularKey启用状态及余额

{
"result" : {
"account_data" : {
"Account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"Balance" : "99999999999999980",
"Flags" : 1114112,
"LedgerEntryType" : "AccountRoot",
"OwnerCount" : 0,
"PreviousTxnID" : "328C416EBD9B8BD336018D4ED1D57FBD591309560BC5D7F915A80F8678456981",
"PreviousTxnLgrSeq" : 27079,
"RegularKey" : "ratab3YWDfFXn5HXSpeHmU8ybZ9MNMJLHR",
"Sequence" : 3,
"index" : "2B6AC232AA4C4BE41BF49D2459FA4A0347E1B543A4C92FCEE0821C0201E2E9A8"
},
"ledger_current_index" : 27100,
"status" : "success",
"validated" : false
}
}

5)测试(使用创世账号原始MasterSeed发起一笔空AccountSet交易)

curl -k -H 'Content-Type: application/json' -X POST -d '
{
"method": "sign",
"params": [
{
"offline": false,
"secret": "snoPBrXtMeMyMHUVTgbuqAfg1SUTb",
"tx_json": {
"Account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"TransactionType": "AccountSet"
},
"fee_mult_max": 10
}
]
}' localhost:8008
{"result":{"error":"masterDisabled","error_code":23,"error_message":"Master key is disabled.","request":{"command":"sign","fee_mult_max":10,"offline":false,"secret":"snoPBrXtMeMyMHUVTgbuqAfg1SUTb","tx_json":{"Account":"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","TransactionType":"AccountSet"}},"status":"error"}}
6月 222018
 

fix1571 is Now Available

https://ripple.com/dev-blog/fix1571-now-available/

As previously announced, the fix1571 amendment became enabled on the XRP Ledger on 2018-06-19. Furthermore, the fix1623 amendment is expected to become enabled on 2018-06-20, followed by the fix1543 amendment on 2018-06-21.
正如之前宣布的那样,修正案fix1571已于2018-06-19在XRP总账网络上启用。此外,修正案fix1623预计于2018-06-20启用,随后是修正案fix1543预计于2018-06-21启用。

Action Required
应采取的行动

If you operate a rippled server, you should upgrade to version 1.0.1 (or higher) immediately.
如果用户运行rippled服务器,应立即升级至1.0.1版本(或更高)。

For instructions on upgrading rippled on supported platforms, see Updating rippled on supported platforms.

Impact of Not Upgrading
不升级的影响

If you operate a rippled server on a version older than 1.0.0, then your server is now amendment blocked, meaning that your server:
如果用户运行低于1.0.0版本的rippled服务器,那么用户当前的服务器将处在共识阻止状态,也就是意味着该服务器:

Cannot determine the validity of a ledger
无法确定总账的有效性
Cannot submit or process transactions
无法提交或处理交易
Does not participate in the consensus process
无法参与共识过程
Does not vote on future amendments
不能对未来的修正案进行投票
Could rely on potentially invalid data
可能依赖已经无效的数据

fix1571 Summary
修正案fix1571摘要

Changes Escrow to fix the following issues:
Escrow变更所要修复的问题:

Changes the EscrowCreate transaction to require the Condition or FinishAfter field (or both). Escrows with neither Condition nor FinishAfter that were created before this amendment can be finished by anyone at any time before their CancelAfter time.
变更在EscrowCreate交易中,要求提供Condition或FinishAfter字段(或两者)。在此修正案生效前已创建的既没有Condition字段也没有FinishAfter字段的交易,可以在CancelAfter字段设定的时间之前的任何时间完成。

Fixes a flaw that incorrectly prevents time-based Escrows from being finished in some circumstances.
修复了在某些情况下错误的阻止正在完成的基于时间的Escrow的缺陷。

6月 162018
 

rippled Version 1.0.1

https://ripple.com/dev-blog/rippled-version-1-0-1/

Ripple has released rippled version 1.0.1, which includes fixes for issues identified by Ripple engineers and reported by external security researchers. These issues, when exploited, could cause a rippled instance to restart or, in some circumstances, stop executing.

Ripple已发布rippled的1.0.1版本,其中修复了包括Ripple工程师及外部安全研究人员报告的问题。这些问题在被利用时可能导致rippled实例重启,或是在某些情况下停止运行。

While these issues can result in a denial of service attack, none affect the integrity of the XRP Ledger and no user funds, including XRP, are at risk.

虽然这些问题可能导致DoS攻击,但却不会影响XRP总账网络的完整性以,也不会对包括XRP在内的用户的资金造成风险。

Action Required
应采取的行动

If you operate a rippled server, then you should upgrade to rippled version 1.0.1 as soon as possible.
如果用户运行rippled服务器,应尽快更新rippled至1.0.1版本。

Impact of Not Upgrading
不升级的影响

If you operate a rippled server, but do not upgrade to version 1.0.1 as soon as possible, then your server may experience restarts or outages.
如果用户运行rippled服务器,但是没有尽快更新到1.0.1版本,则服务器可能出现重启或中断服务的情况。

Upgrading
升级

For instructions on updating rippled on supported platforms, see Updating rippled.

The SHA-256 for the RPM is: 4bfa27b0e1e1979f2bc042edb9dd11ae4119dac6be087813dadcc67572877189

The SHA-256 for the source RPM is: 60279abc65476b0a96ddedcd23338ce1c6fb5481ab94fe8b8c856448044e3ebe

For other platforms, please compile v1.0.1 from source. See the rippled source tree for instructions by platform. For instructions building rippled from source on Ubuntu Linux, see Install rippled on Ubuntu.

The first log entry should be the change setting the version:

commit 8429dd67e60ba360da591bfa905b58a35638fda1
Author: Nik Bougalis <nikb@bougalis.net>
Date: Mon Jun 4 16:36:22 2018 -0700

Set version to 1.0.1

Network Update
网络更新
The Ripple operations team plans to deploy version 1.0.1 to all rippled servers under its operational control, including private clusters, starting at 3:00 PM PST on Thursday, 2018-06-14. The deployment is expected to complete within 5 hours. The network should continue to operate during deployment and no outage is expected.

Ripple运营团队计划部署1.0.1版本到其控制下的所有rippled服务器,包括私有集群。时间自2018-06-14星期四,3:00 PM PST开始。预计需要5个小时完成部署。在部署期间网络将持续保持可用且不会出现中断的情形。

Other Information
其他信息
Acknowledgements
致谢

Ripple thanks Guido Vranken for discovering and responsibly disclosing an off-by-one error in the base64 decoder logic when handling malformed input.

Bug Bounties and Responsible Disclosures

Ripple welcomes reviews of the rippled codebase and urges reviewers to responsibly disclose any issues that they may find. For more on Ripple’s Bug Bounty program, please visit https://ripple.com/bug-bounty/.

Boost Compatibility
Boost兼容性

When compiling rippled from source, you must use a compatible version of the Boost library. Ripple recommends Boost 1.64.0 for all platforms.
从源代码编译rippled时,用户必须使用兼容版本的Boost库。Ripple推荐在所有平台都使用Boost 1.64.0版本。

Other compatible versions differ by platform. Boost 1.58.0 is compatible on Linux but not on Windows. On macOS, Boost 1.58.0 is not compatible with the Clang compiler version 4.0+.
其他兼容版本因平台而异。Boost 1.58.0版本在Linux上兼容而在Windows上不兼容。在MacOS系统中,Boost 1.58.0版本与Clang编译器4.0+版本不兼容。

Learn, ask questions, and discuss
学习,提问和讨论

Related documentation is available in the XRP Ledger Developer Portal, including detailed reference information, tutorials, and web tools.

Other resources:

The Ripple Forum
The Ripple Dev Blog
Ripple Technical Services: support@ripple.com
XRP Chat

Upcoming Features

即将推出的新特性

The previously introduced fix1543, fix1571 and fix1623 Amendments in XRP Ledger version 1.0.0 are now open for voting. Ripple expects these amendments to become enabled on Tuesday, 2018-06-19.

在先前XRP总账版本1.0.0中引入的fix1543, fix1571和fix1623修正案现在已开放投票。Ripple预计这些修正案将于2018-06-19星期二启用。

An upcoming version of rippled will switch to using the Boost.Beast library instead of the Beast library from the rippled source code. As part of this change, the minimum supported version of Boost will change to be a version incorporating Boost.Beast.

即将推出的rippled版本将切换为使用Boost.Beast库,以取代rippled源码中的Beast库。作为更改的一部分,Boost的最低支持版本将更改为包含Boost.Beast的版本。

Ripple does not expect to enable the SHAMapV2, Tickets, or OwnerPaysFee Amendments before the next release of rippled. These Amendments have been disabled in the source code so rippled version 1.0.1 will not show them as available. Ripple plans to re-introduce some or all of these amendments in a future version of rippled.

Ripple不希望在下一个rippled版本发布之前启用SHAMapV2, Tickets,或OwnerPaysFee修正案。这些修正案已在源码中禁用,因此rippled的1.0.1版本不会显示他们为可用状态。Ripple计划在未来的版本中重新引入部分或全部这些修正案。

1.0.1 Change Log
Bug Fixes

Improve JSON exception handling
改进JSON异常处理。

Fix a corner case when decoding base64: Under some corner cases, the base64 decoder would not allocate enough memory, which could result in spurious errors.
修复一个极端情况下的base64解码问题:在某些极端情况下,base64解码器可能无法分配足够内存,进而导致虚假错误。