identity

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSameIdentifier

func IsSameIdentifier(issuerA string, issuerB string) bool

IsSameIdentifier checks if 2 issuers string have the same identifier

func MakeIdentifier

func MakeIdentifier(publicKeyBytes []byte) (string, error)

MakeIdentifier generates a new decentralised identifier from public key as bytes.

func MakeName

func MakeName(purpose DidType) string

MakeName make a valid key name given DID Type

Types

type DidType

type DidType uint

DidType is the DID document type string eg (user, agent, twin ...)

const (
	Host DidType = iota
	User
	Agent
	Twin
)

func ParseDidType

func ParseDidType(didType string) (DidType, error)

ParseDidType translate a DID type in string (eg "user") to internal type

func (DidType) String

func (didType DidType) String() string

String DidType to string

Jump to

Keyboard shortcuts

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