resolve

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Overview

Package resolve provides helpers for resolving various ATProto elements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DidBytes

func DidBytes(ctx context.Context, did string) ([]byte, error)

func Handle

func Handle(ctx context.Context, handle string) (string, error)

Types

type DidDocument

type DidDocument struct {
	ID                 string `json:"id"`
	VerificationMethod []struct {
		ID                 string `json:"id"`
		Type               string `json:"type"`
		Controller         string `json:"controller"`
		PublicKeyMultibase string `json:"publicKeyMultibase"`
	} `json:"verificationMethod"`
	Service []struct {
		ID              string `json:"id"`
		Type            string `json:"type"`
		ServiceEndpoint string `json:"serviceEndpoint"`
	} `json:"service"`
	AlsoKnownAs []string `json:"alsoKnownAs"`
}

func Did

func Did(ctx context.Context, did string) (*DidDocument, error)

Jump to

Keyboard shortcuts

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