Rearrange modules
This commit is contained in:
parent
9757fd20f6
commit
7048464691
|
@ -41,7 +41,6 @@ With the help of browserify `bitmessage` provides different implementations for
|
||||||
- [ ] net_addr
|
- [ ] net_addr
|
||||||
- [ ] inv_vect
|
- [ ] inv_vect
|
||||||
- [ ] encrypted
|
- [ ] encrypted
|
||||||
- [ ] unencrypted
|
|
||||||
- [ ] encoding
|
- [ ] encoding
|
||||||
- [ ] bitfield
|
- [ ] bitfield
|
||||||
- [ ] Message types
|
- [ ] Message types
|
||||||
|
|
|
@ -11,7 +11,7 @@ require("object.assign").shim();
|
||||||
var assert = require("assert");
|
var assert = require("assert");
|
||||||
var bufferEqual = require("buffer-equal");
|
var bufferEqual = require("buffer-equal");
|
||||||
var bs58 = require("bs58");
|
var bs58 = require("bs58");
|
||||||
var var_int = require("./struct").var_int;
|
var var_int = require("./structs").var_int;
|
||||||
var bmcrypto = require("./crypto");
|
var bmcrypto = require("./crypto");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/** Common structures. */
|
/** Common structures. */
|
||||||
exports.struct = require("./struct");
|
exports.structs = require("./structs");
|
||||||
/** Messages. */
|
/** Messages. */
|
||||||
exports.message = require("./message");
|
exports.messages = require("./messages");
|
||||||
/** Objects. */
|
/** Objects. */
|
||||||
exports.object = require("./object");
|
exports.objects = require("./objects");
|
||||||
|
|
||||||
/** Working with WIF. */
|
/** Working with WIF. */
|
||||||
exports.WIF = require("./wif");
|
exports.WIF = require("./wif");
|
||||||
|
|
6
test.js
6
test.js
|
@ -5,9 +5,9 @@ var allTests = typeof window === "undefined" ?
|
||||||
|
|
||||||
var bmcrypto = require("./lib/crypto");
|
var bmcrypto = require("./lib/crypto");
|
||||||
var bitmessage = require("./lib");
|
var bitmessage = require("./lib");
|
||||||
var var_int = bitmessage.struct.var_int;
|
var var_int = bitmessage.structs.var_int;
|
||||||
var var_str = bitmessage.struct.var_str;
|
var var_str = bitmessage.structs.var_str;
|
||||||
var var_int_list = bitmessage.struct.var_int_list;
|
var var_int_list = bitmessage.structs.var_int_list;
|
||||||
var WIF = bitmessage.WIF;
|
var WIF = bitmessage.WIF;
|
||||||
var Address = bitmessage.Address;
|
var Address = bitmessage.Address;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user