utils library

Functions

bytesBEToBigInt(List<int> bytes) BigInt
chunkArray<T>(List<T> array, int chunkSize) List<List>
Splits an array into chunks of size chunk_size. If the array is not evenly divisible by chunk_size, the first chunk will be smaller than chunk_size.
genAddressSeed(BigInt salt, String name, String value, String aud, {int maxNameLength = MAX_KEY_CLAIM_NAME_LENGTH, int maxValueLength = MAX_KEY_CLAIM_VALUE_LENGTH, int maxAudLength = MAX_AUD_VALUE_LENGTH}) BigInt
getExtendedEphemeralPublicKey(PublicKey publicKey) String
hashASCIIStrToField(String str, int maxSize) BigInt
hashes an ASCII string to a field element