Add split_any, to_fixed_size, size, to_any_size, Int.to_bytes and String.to_bytes

This commit is contained in:
Hans Svensson
2023-05-05 13:05:47 +02:00
parent fda58ec430
commit ae83c434fd
6 changed files with 118 additions and 45 deletions
+3
View File
@@ -1,5 +1,8 @@
include "List.aes"
namespace String =
// Gives a bytes() representation of the string
function to_bytes(s : string) : bytes() = StringInternal.to_bytes(s)
// Computes the SHA3/Keccak hash of the string
function sha3(s : string) : hash = StringInternal.sha3(s)
// Computes the SHA256 hash of the string.