package
1.0.0
Repository: https://github.com/coursant/core_common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
EntriesFromRDF creates entries from RDF dataset suitable to add to merkle tree.
EntriesFromRDFWithHasher creates entries from RDF dataset suitable to add to with a provided Hasher merkle tree.
HashValue hashes value according to datatype.
HashValueWithHasher hashes value according to datatype with a provided Hasher.
MerkleTreeSQLAdapter is merkle tree sql adapter.
MerklizeJSONLD takes a JSON-LD document, parses it and returns a Merklizer.
NewFieldPathFromContext resolves field path without type path prefix.
No description provided by the author
NewPathFromContext parses context and do its best to generate full Path from shortcut line field1.field2.field3...
No description provided by the author
No description provided by the author
NewValue creates new Value.
SetHasher changes default hasher.
TypeFromContext returns type of field from context by path.
WithHasher sets Hasher option.
WithMerkleTree sets MerkleTree option.
WithSafeMode enables the Safe mode when extending a JSON-LD document.

# Variables

No description provided by the author
ErrorContextTypeIsEmpty is returned when context type tp resolve is empty.
ErrorFieldIsEmpty is returned when field path to resolve is empty.
ErrorUnsupportedType is returned when type is not supported.

# Structs

Merklizer is a struct to work with json-ld doc merklization.
Options type allows to change hashing algorithm and create Path and RDFEntry instances with hasher different from default one.
No description provided by the author
PoseidonHasher is an applier of poseidon hash algorithm.
No description provided by the author

# Interfaces

Hasher is an interface to hash data.
MerkleTree is merkle tree structure.
No description provided by the author

# Type aliases

MerklizeOption is options for merklizer.