util

package
v0.0.0-...-920a7e7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaimAsJSON

func ClaimAsJSON(claim interface{}) (map[string]interface{}, error)

ClaimAsJSON converts a claim with an unknown interface{} into the go-json representation of that credential. claim can only be of type {string, map[string]interface, VerifiableCredential}.

func CredentialsFromInterface

func CredentialsFromInterface(genericCred interface{}) (*credential.VerifiableCredential, error)

CredentialsFromInterface turn a generic cred into a known shape without maintaining the proof/signature wrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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