utils

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// SubjectPositionIndex save subject in index part of claim. By default.
	// Deprecated: use verifiable.CredentialSubjectPositionIndex instead
	SubjectPositionIndex = "index"
	// SubjectPositionValue save subject in value part of claim.
	// Deprecated: use verifiable.CredentialSubjectPositionValue instead
	SubjectPositionValue = "value"

	// MerklizedRootPositionIndex merklized root is stored in index.
	// Deprecated: use verifiable.CredentialMerklizedRootPositionIndex instead
	MerklizedRootPositionIndex = "index"
	// MerklizedRootPositionValue merklized root is stored in value.
	// Deprecated: use verifiable.CredentialMerklizedRootPositionValue instead
	MerklizedRootPositionValue = "value"
	// MerklizedRootPositionNone merklized root is not stored in the claim. By Default.
	// Deprecated: use verifiable.CredentialMerklizedRootPositionNone instead
	MerklizedRootPositionNone = ""
)

Variables

This section is empty.

Functions

func CreateSchemaHash

func CreateSchemaHash(schemaID []byte) core.SchemaHash

CreateSchemaHash computes schema hash from schemaID

func Keccak256

func Keccak256(data ...[]byte) []byte

Keccak256 calculates the Keccak256 hash of the input data.

func SwapEndianness

func SwapEndianness(buf []byte) []byte

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL