model

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PermanentResidentCard = "PermanentResidentCard"
	BankCard              = "BankCard"
)
View Source
const NormalizationAlgo = "URDNA2015"
View Source
const NormalizationFormat = "application/n-quads"
View Source
const ProofType = "Ed25519Signature2020"

follow the algorithm here. (https://w3c-ccg.github.io/data-integrity-spec/#proof-algorithm)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken added in v0.1.7

type AuthToken struct {
	Token        string
	TokenType    string
	ExpiresIn    int32
	RefreshToken string
}

type DidDocument added in v0.1.7

type DidDocument struct {
	Context              []string      `json:"@context"`
	Id                   string        `json:"id"`
	Authentication       []KeyMaterial `json:"authentication"`
	Service              []Service     `json:"service,omitempty"`
	CapabilityInvocation []KeyMaterial `json:"capabilityInvocation"`
	CapabilityDelegation []KeyMaterial `json:"capabilityDelegation"`
	AssertionMethod      []KeyMaterial `json:"assertionMethod"`
	KeyAgreement         []KeyMaterial `json:"keyAgreement,omitempty"`
}

type KeyMaterial added in v0.1.7

type KeyMaterial struct {
	Id                 string `json:"id"`
	Type               string `json:"type"`
	Controller         string `json:"controller"`
	PublicKeyMultibase string `json:"publicKeyMultibase"`
}

type Proof

type Proof struct {
	Type               string
	Created            string
	VerificationMethod string
	ProofPurpose       string
	ProofValue         string
}

type SerializedDocument

type SerializedDocument = interface{}

type Service added in v0.1.24

type Service struct {
	Id              string `json:"id"`
	Type            string `json:"type"`
	ServiceEndpoint string `json:"serviceEndpoint"`
}

Jump to

Keyboard shortcuts

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