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
|
||||
- [ ] inv_vect
|
||||
- [ ] encrypted
|
||||
- [ ] unencrypted
|
||||
- [ ] encoding
|
||||
- [ ] bitfield
|
||||
- [ ] Message types
|
||||
|
|
|
@ -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");
|
||||
|
||||
/**
|
||||
|
|
|
@ -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");
|
||||
|
|
6
test.js
6
test.js
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user