The Record entity
The principal element of the BLOOCK SDKs is the Record as it's used on most of the functionalities. It's responsible for different interactions such as:
- Encapsulate your data
- Hashing
- Add digital signatures
- Add encryption
- Add self-contained metadata
Record builders
In order to generate a Record, our SDKs provide different builders to do so. Those builders enable to set as input different data types, formats or encodings based on your needs.
Available builders
Currently, the following builders are available:
Name | Description |
---|---|
fromString | It takes a UTF-8 string as input |
fromBytes | It takes an array of bytes as input |
fromHex | It takes a hash string (hex encoded 64-chars long string) as input |
fromJson | It takes a JSON as input |
fromRecord | It takes a record as input |
fromFile | It takes a file (as a byte array) as input |
fromLoader | It takes a Loader as input |