cryptosuite

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519Signature2020

type Ed25519Signature2020 struct {
	Id                 string    `json:"id"`
	Type               string    `json:"type"` // must be "Ed25519Signature2020"
	VerificationMethod string    `json:"verificationMethod"`
	Created            time.Time `json:"created"`
	ProofPurpose       string    `json:"proofPurpose"`
	ProofValue         string    `json:"proofValue"`
}

type Ed25519VerificationKey2020

type Ed25519VerificationKey2020 struct {
	Id                 string `json:"id"`
	Type               string `json:"type"` // must be "Ed25519VerificationKey2020"
	Controller         string `json:"controller"`
	PublicKeyMultibase string `json:"publicKeyMultibase"`
}

type JSONWebSignature2020

type JSONWebSignature2020 struct {
	Type               string    `json:"type"` // must be "JsonWebSignature2020"
	VerificationMethod string    `json:"verificationMethod"`
	Created            time.Time `json:"created"`
	ProofPurpose       string    `json:"proofPurpose"`
	Jws                string    `json:"jws"`
}

type JsonWebKey2020

type JsonWebKey2020 struct {
	Id           string      `json:"id"`
	Type         string      `json:"type"` // must be "JsonWebKey2020"
	Controller   string      `json:"controller"`
	PublicKeyJwk interface{} `json:"publicKeyJwk"`
}

type PrivateKey

type PrivateKey struct {
	Id            string
	Controller    string
	CanonicalAlgo string
	SigningMethod jwt.SigningMethod
	Type          string
	Key           []byte //raw key format
}

type ProofPresentation

type ProofPresentation struct {
	Method     interface{}
	PrivateKey PrivateKey
}

func (*ProofPresentation) HasMatchVerificationMethod

func (p *ProofPresentation) HasMatchVerificationMethod(vm interface{}) bool

type PublicKey

type PublicKey struct {
	Id                   string
	Controller           string
	CanonicalAlgo        string
	SigningMethod        jwt.SigningMethod
	Type                 string
	Key                  interface{} //raw key format
	RequireCreated       bool
	ExpectedProofPurpose string
}

Jump to

Keyboard shortcuts

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