@node-dlc/bitcoin
Version:
25 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HashByteOrder = void 0;
var HashByteOrder;
(function (HashByteOrder) {
/**
* Internal byte order is the natural byte order of elements as they
* cedome out of hash function. Calculations are often performed
* using the internal byte order.
*
* This is often referred to as little-endian byte-order due to the
* block hash being reversed to compare it to the target.
*/
HashByteOrder[HashByteOrder["Internal"] = 0] = "Internal";
/**
* RPC byte order is the byte order of hash value as displayed in
* the bitcoind RPC. Most hash values associated with Bitcoin are
* displayed in this order by reversing the internal byte order.
*
* This is often referred to as big-endian byte-order due to the
* block hash being reversed to compare it to the target.
*/
HashByteOrder[HashByteOrder["RPC"] = 1] = "RPC";
})(HashByteOrder = exports.HashByteOrder || (exports.HashByteOrder = {}));
//# sourceMappingURL=HashByteOrder.js.map