diff --git a/lib/protocol/base58.js b/lib/encoding/base58.js similarity index 100% rename from lib/protocol/base58.js rename to lib/encoding/base58.js diff --git a/lib/protocol/base58check.js b/lib/encoding/base58check.js similarity index 100% rename from lib/protocol/base58check.js rename to lib/encoding/base58check.js diff --git a/lib/protocol/bufferreader.js b/lib/encoding/bufferreader.js similarity index 100% rename from lib/protocol/bufferreader.js rename to lib/encoding/bufferreader.js diff --git a/lib/protocol/bufferwriter.js b/lib/encoding/bufferwriter.js similarity index 100% rename from lib/protocol/bufferwriter.js rename to lib/encoding/bufferwriter.js diff --git a/lib/protocol/varint.js b/lib/encoding/varint.js similarity index 100% rename from lib/protocol/varint.js rename to lib/encoding/varint.js diff --git a/lib/protocol/constants.js b/lib/networks.js similarity index 100% rename from lib/protocol/constants.js rename to lib/networks.js diff --git a/test/protocol/base58.js b/test/encoding/base58.js similarity index 100% rename from test/protocol/base58.js rename to test/encoding/base58.js diff --git a/test/protocol/base58check.js b/test/encoding/base58check.js similarity index 100% rename from test/protocol/base58check.js rename to test/encoding/base58check.js diff --git a/test/protocol/bufferreader.js b/test/encoding/bufferreader.js similarity index 100% rename from test/protocol/bufferreader.js rename to test/encoding/bufferreader.js diff --git a/test/protocol/bufferwriter.js b/test/encoding/bufferwriter.js similarity index 100% rename from test/protocol/bufferwriter.js rename to test/encoding/bufferwriter.js diff --git a/test/protocol/varint.js b/test/encoding/varint.js similarity index 100% rename from test/protocol/varint.js rename to test/encoding/varint.js diff --git a/test/protocol/constants.js b/test/networks.js similarity index 100% rename from test/protocol/constants.js rename to test/networks.js