Documentation
¶
Index ¶
- func CheckDataInField(data []byte) bool
- func CreateSchemaHash(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 VerifyClaimHash(credential *verifiable.Iden3Credential, claim *core.Claim) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDataInField ¶
CheckDataInField checks if data is in Q field
func CreateSchemaHash ¶
func CreateSchemaHash(credentialType string) core.SchemaHash
CreateSchemaHash calculates schema hash
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 VerifyClaimHash ¶
func VerifyClaimHash(credential *verifiable.Iden3Credential, claim *core.Claim) error
VerifyClaimHash verifies that hashes of index and value of claim are equal to proof in credential
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.