Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SubjectPositionIndex save subject in index part of claim. By default. SubjectPositionIndex = "index" // SubjectPositionValue save subject in value part of claim. SubjectPositionValue = "value" // MerklizedRootPositionIndex merklized root is stored in index. MerklizedRootPositionIndex = "index" // MerklizedRootPositionValue merklized root is stored in value. MerklizedRootPositionValue = "value" // MerklizedRootPositionNone merklized root is not stored in the claim. By Default. MerklizedRootPositionNone = "" )
Variables ¶
This section is empty.
Functions ¶
func CreateSchemaHash ¶
func CreateSchemaHash(schemaID []byte) core.SchemaHash
CreateSchemaHash computes schema hash from schemaID
func DataFillsSlot ¶
DataFillsSlot checks if newData fills into slot capacity ()
func FieldToByteArray ¶
FieldToByteArray convert fields to byte representation based on type
func SwapEndianness ¶ added in v0.2.0
SwapEndianness swaps the endianness of the value encoded in buf. If buf is Big-Endian, the result will be Little-Endian and vice-versa.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.