utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPublicKey

func FindPublicKey(signer types.Signer, id string) (ed25519.PublicKey, error)

func FindVerificationMethod

func FindVerificationMethod(vms []*types.PublicKeyStruct, id string) *types.PublicKeyStruct

func IsValidDIDArray

func IsValidDIDArray(didArray []string) bool

Check whether the fields whose values are array of DIDs are valid DID

func IsValidDid

func IsValidDid(did string) bool

Checks whether the given string is a valid DID

func IsValidDidDoc

func IsValidDidDoc(didDoc *types.DidDocStructCreateDID) string

Checks whether the DidDoc string is valid

func IsValidDidDocID

func IsValidDidDocID(didDoc *types.DidDocStructCreateDID) bool

Checks whether the ID in the DidDoc is a valid string

func IsValidSchemaID

func IsValidSchemaID(schemaId string) error

func SplitDidUrlIntoDid

func SplitDidUrlIntoDid(didUrl string) (string, string)

func VerifyIdentitySignature

func VerifyIdentitySignature(signer types.Signer, signatures []*types.SignInfo, signingInput []byte) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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