did

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DID

type DID struct {
	Network string
	Id      Id
}

func DidDecode

func DidDecode(didStr string) (DID, error)

func (DID) String

func (did DID) String() string

type Id

type Id [hashLenBytes]byte

func DecodeId

func DecodeId(idStr string) (Id, error)

func (Id) String

func (id Id) String() string

type Object

type Object = Id

func NewObject

func NewObject(pub ed25519.PublicKey) (Object, error)

func (Object) CanonicalPublicKey

func (o Object) CanonicalPublicKey() (ed25519.PublicKey, error)

func (Object) DID

func (o Object) DID(network string) (DID, error)

func (Object) Id

func (o Object) Id() Id

Jump to

Keyboard shortcuts

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