server/src/main/java/net/johanbasson/neo/domain/common/Sha256Hash.java
/**
     * Returns a copy of the given byte array in reverse order.
     */
Returns a copy of the given byte array in reverse order.
Returns a copy of the given byte array in reverse order .
private static byte[] reverseBytes(byte[] bytes) {
        byte[] buf = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++)
            buf[i] = bytes[bytes.length - 1 - i];
        return buf;
    }
private static byte [ ] reverseBytes ( byte [ ] bytes ) { byte [ ] buf = new byte [ bytes . length ] ; for ( int i = 0 ; i < bytes . length ; i ++ ) buf [ i ] = bytes [ bytes . length - 1 - i ] ; return buf ; }
Returns a copy of the given byte array in reverse order.
Returns a copy of the given byte array in reverse order .
// We could use the XOR trick here but it's easier to understand if we don't. If we find this is really a // performance issue the matter can be revisited.