From 2de124d6c0933082e5c46dd2bef42c2388fe6c86 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Tue, 22 Jan 2013 20:38:44 +0100 Subject: [PATCH] Expose SJCL so the client doesn't have to include a second copy. --- src/js/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/js/index.js b/src/js/index.js index 2d6e65f71..563edb9c5 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,4 +1,13 @@ exports.Remote = require('./remote').Remote; exports.Amount = require('./amount').Amount; exports.UInt160 = require('./amount').UInt160; -exports.Seed = require('./amount').Seed; \ No newline at end of file +exports.Seed = require('./amount').Seed; + +// Important: We do not guarantee any specific version of SJCL or for any +// specific features to be included. The version and configuration may change at +// any time without warning. +// +// However, for programs that are tied to a specific version of ripple.js like +// the official client, it makes sense to expose the SJCL instance so we don't +// have to include it twice. +exports.sjcl = require('../../build/sjcl');