did

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 12

Documentation

Index

Constants

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

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) GoString

func (d DID) GoString() string

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

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