Rearrange modules

This commit is contained in:
Kagami Hiiragi 2015-01-03 13:14:39 +03:00
parent 9757fd20f6
commit 7048464691
7 changed files with 7 additions and 8 deletions

View File

@ -41,7 +41,6 @@ With the help of browserify `bitmessage` provides different implementations for
- [ ] net_addr
- [ ] inv_vect
- [ ] encrypted
- [ ] unencrypted
- [ ] encoding
- [ ] bitfield
- [ ] Message types

View File

@ -11,7 +11,7 @@ require("object.assign").shim();
var assert = require("assert");
var bufferEqual = require("buffer-equal");
var bs58 = require("bs58");
var var_int = require("./struct").var_int;
var var_int = require("./structs").var_int;
var bmcrypto = require("./crypto");
/**

View File

@ -6,11 +6,11 @@
"use strict";
/** Common structures. */
exports.struct = require("./struct");
exports.structs = require("./structs");
/** Messages. */
exports.message = require("./message");
exports.messages = require("./messages");
/** Objects. */
exports.object = require("./object");
exports.objects = require("./objects");
/** Working with WIF. */
exports.WIF = require("./wif");

View File

@ -5,9 +5,9 @@ var allTests = typeof window === "undefined" ?
var bmcrypto = require("./lib/crypto");
var bitmessage = require("./lib");
var var_int = bitmessage.struct.var_int;
var var_str = bitmessage.struct.var_str;
var var_int_list = bitmessage.struct.var_int_list;
var var_int = bitmessage.structs.var_int;
var var_str = bitmessage.structs.var_str;
var var_int_list = bitmessage.structs.var_int_list;
var WIF = bitmessage.WIF;
var Address = bitmessage.Address;