Kvazar Crawler Engine that works with Kevacoin node
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
383 B

<?php
class Hash {
public static function SHA256(string $data, $raw = true): string {
return hash('sha256', $data, $raw);
}
public static function sha256d(string $data): string {
return hash('sha256', hash('sha256', $data, true), true);
}
public static function RIPEMD160(string $data, $raw = true): string {
return hash('ripemd160', $data, $raw);
}
}