did

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0, MIT Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const DIDCore = 0x0d1d
View Source
const Ed25519 = 0xed
View Source
const KeyPrefix = "did:key:"
View Source
const Prefix = "did:"

Variables

View Source
var Undef = DID{}

Undef can be used to represent a nil or undefined DID, using DID{} directly is also acceptable.

Functions

This section is empty.

Types

type DID

type DID struct {
	// contains filtered or unexported fields
}

func Decode

func Decode(bytes []byte) (DID, error)

func Parse

func Parse(str string) (DID, error)

func (DID) Bytes

func (d DID) Bytes() []byte

func (DID) DID

func (d DID) DID() DID

func (DID) Defined

func (d DID) Defined() bool

func (DID) String

func (d DID) String() string

String formats the decentralized identity document (DID) as a string.

Jump to

Keyboard shortcuts

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