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
(((B))) BitcoinJS Daemon v0.2.1 (node-bitcoin-p2p) | |
Copyright (c) 2011 BitcoinJS Project | |
LICENSE This program is free software; you can redistribute it and/or modify | |
it under the terms of the MIT license. | |
2 Jan 03:13:47 - info: Loading configuration | |
2 Jan 03:13:47 - info: Initializing LevelDB (leveldb:///home/moon/.bitcoinjs/leveldb/) | |
2 Jan 03:13:47 - info: Listening for Bitcoin connections on port 8333 |
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 src="https://raw.github.com/bitwiseshiftleft/sjcl/master/sjcl.js"></script> | |
<script src="https://raw.github.com/bitwiseshiftleft/sjcl/master/core/bn.js"></script> | |
<script src="https://raw.github.com/bitwiseshiftleft/sjcl/master/core/ecc.js"></script> | |
<script> | |
// Overwrite NIST-P256 with secp256k1 | |
sjcl.ecc.curves.c256 = new sjcl.ecc.curve( | |
sjcl.bn.pseudoMersennePrime(256, [[0,-1],[4,-1],[6,-1],[7,-1],[8,-1],[9,-1],[32,-1]]), | |
"0x14551231950b75fc4402da1722fc9baee", | |
0, | |
7, |
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
/** this /= (int) that */ | |
sjcl.bn.prototype.divIntM = function (that) { | |
var i, limbs = this.limbs, ll = limbs.length, carry = 0, quotient; | |
if (this.sign() === -1) { | |
throw (new sjcl.exception.invalid("divIntM: dividend must be > 0")); | |
} | |
if ("number" !== typeof that || |
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> |
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" 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
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
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
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(); | |