All files HashByteOrder.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 221x                 1x                   1x    
export enum 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.
     */
    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.
     */
    RPC,
}