Old | New | Comment |
---|---|---|
src/js/client/model.js |
src/js/controllers/app.js |
The model stuff was moved to a global controller. |
src/js/client/status.js |
src/js/controllers/status.js |
The status module is now a controller, see "Status controller" below. |
src/js/client/network.js |
src/js/services/network.js |
|
src/js/client/id.js |
src/js/services/id.js |
|
src/js/client/blob.js |
src/js/services/blob.js |
|
src/js/client/angular.js |
src/js/entry/desktop.js |
Which modules are used might be target-specific, so the loading has been moved to entry/ . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently, we're using this currency code format (from ripple.com/wiki/Currency_format): | |
00 00 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ | |
ZERO------------------------------- CURCODE- VER-- RESERVED | |
Let's define the first byte as the type byte. | |
Type 0x00 means the normal format: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PathSet as JSON: | |
[ | |
[{ | |
"account": "r9hEDb4xBGRfBCcX3E4FirDWQBAYtpxC8K", | |
"currency": "BTC", | |
"issuer": "r9hEDb4xBGRfBCcX3E4FirDWQBAYtpxC8K" | |
}, { | |
"account": "rM1oqKtfh1zgjdAgbFmaRm3btfGBX25xVo", | |
"currency": "BTC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User enters: [email protected] | |
// https://bitcoin.example.com/ripple.txt | |
[federation_url] | |
https://alipay.ripple.com/alipaybridge | |
// https://bitcoin.example.com/bridge?type=federation&domain=bitcoin.example.com&destination=1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ripple = require('ripple-lib'); | |
var remote = ripple.Remote.from_config({ | |
// "trace" : true, | |
"websocket_ip" : "122.70.133.11", | |
"websocket_port" : 5006, | |
"websocket_ssl" : false | |
}); | |
remote.connect(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ripple = require('ripple-lib'); | |
// Example destination and amount | |
// -------------------------------------------------- | |
var destination = "rfbKLd1VLB3o6fpkhCJexckArjoMmBm2wG"; | |
var amount = "1/CNY/rJL724ibxVFb9EKkTe2StQ4u6ViWAQm1Wc"; | |
// -------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Crypto.Hash.SHA256 as SHA256 | |
__b58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | |
__b58base = len(__b58chars) | |
def b58encode(v): | |
""" encode v, which is a string of bytes, to base58. | |
""" | |
long_value = 0L |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/crypto-js/crypto.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/crypto-js/sha256.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/crypto-js/ripemd160.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/jsbn/prng4.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/jsbn/rng.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/jsbn/jsbn.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/jsbn/jsbn2.js"></script> | |
<script type="text/javascript" src="scripts/vendor/bitcoinjs-lib/src/jsbn/ec.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var bignum = require("bignum"); | |
console.log("It gets this far."); | |
bignum(2).pow(256); | |
console.log("But never this far."); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
require("buffertools"); | |
console.log("It gets this far."); | |
new Buffer(32).clear(); | |
console.log("But never this far."); | |
</script> |