[][src]Function koibumi_core::hash::double_sha512

pub fn double_sha512(input: impl AsRef<[u8]>) -> Hash512

Performs double SHA-512 on an arbitrary byte array input, that is equivalent to sha512(sha512(input)).

Examples

use koibumi_core::hash;

assert_eq!(
    hash::double_sha512(b"hello").to_string(),
    "0592a10584ffabf96539f3d780d776828c67da1ab5b169e9e8aed838aaecc9ed36d49ff1423c55f019e050c66c6324f53588be88894fef4dcffdb74b98e2b200"
);