cid

package
v0.0.0-...-dec6028 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Controlled Identifier Documents

This directory contains an implementation of the Controlled Identifier Document 1.0 specification.

Documentation

Index

Constants

View Source
const (
	TypeJSONWebKey string = "JsonWebKey"
	TypeMultikey   string = "Multikey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID                   string                     `json:"id" validate:"required"`
	AlsoKnownAs          []string                   `json:"alsoKnownAs,omitempty"`
	Controller           util.SingleOrArray[string] `json:"controller,omitempty"`
	VerificationMethod   []VerificationMethod       `json:"verificationMethod,omitempty"`
	Authentication       []VerificationMethodMap    `json:"authentication,omitempty"`
	AssertionMethod      []VerificationMethodMap    `json:"assertionMethod,omitempty"`
	KeyAgreement         []VerificationMethodMap    `json:"keyAgreement,omitempty"`
	CapabilityInvocation []VerificationMethodMap    `json:"capabilityInvocation,omitempty"`
	CapabilityDelegation []VerificationMethodMap    `json:"capabilityDelegation,omitempty"`
}

Document data model as per https://www.w3.org/TR/controller-document/#data-model

type VerificationMethod

type VerificationMethod struct {
	ID                 string                     `json:"id" validate:"required"`
	Type               string                     `json:"type" validate:"required"`
	Controller         util.SingleOrArray[string] `json:"controller" validate:"required"`
	Revoked            string                     `json:"revoked,omitempty"`
	PublicKeyJWK       jwk.Key                    `json:"publicKeyJwk,omitempty"`
	SecretKeyJWK       jwk.Key                    `json:"secretKeyJwk,omitempty"`
	PublicKeyMultibase string                     `json:"publicKeyMultibase,omitempty"`
	SecretKeyMultibase string                     `json:"secretKeyMultibase,omitempty"`
}

type VerificationMethodMap

type VerificationMethodMap struct {
}

Jump to

Keyboard shortcuts

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