Documentation
¶
Index ¶
- Constants
- func CheckDataInField(data []byte) bool
- func CreateSchemaHash(schemaBytes []byte, credentialType string) core.SchemaHash
- func DataFillsSlot(slot, newData []byte) bool
- func FieldToByteArray(field interface{}) ([]byte, error)
- func FillClaimSlots(content []byte, indexFields, valueFields []string) (processor.ParsedSlots, error)
- func IndexOf(field string, fields []string) int
- func Keccak256(data ...[]byte) []byte
- func SwapEndianness(buf []byte) []byte
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" )
Variables ¶
This section is empty.
Functions ¶
func CheckDataInField ¶
CheckDataInField checks if data is in Q field
func CreateSchemaHash ¶
func CreateSchemaHash(schemaBytes []byte, credentialType string) core.SchemaHash
CreateSchemaHash computes schema hash from content and credential type
func DataFillsSlot ¶
DataFillsSlot checks if newData fills into slot capacity ()
func FieldToByteArray ¶
FieldToByteArray convert fields to byte representation based on type
func FillClaimSlots ¶
func FillClaimSlots(content []byte, indexFields, valueFields []string) (processor.ParsedSlots, error)
FillClaimSlots fullfils index and value fields to iden3 slots
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.