attestation

package
v0.0.0-...-241e586 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestWalletCompleteRequest

type AttestWalletCompleteRequest struct {
	AssuranceLevel string `json:"assurance_level"`
	Proof          Proof  `json:"proof"`
	SessionID      string `json:"session_id"`
}

type AttestWalletCompleteResponse

type AttestWalletCompleteResponse struct {
	WalletAttestationVC string `json:"wallet_attestation_vc"`
}

type AttestWalletInitRequest

type AttestWalletInitRequest struct {
	Payload map[string]interface{} `json:"payload"`
}

type AttestWalletInitResponse

type AttestWalletInitResponse struct {
	Challenge string `json:"challenge"`
	SessionID string `json:"session_id"`
}

type GetAttestationRequest

type GetAttestationRequest struct {
	Audience                 string
	Nonce                    string
	AttestationType          string
	AuthorizationHeaderValue string
}

type JwtProofClaims

type JwtProofClaims struct {
	Issuer   string `json:"iss,omitempty"`
	Audience string `json:"aud,omitempty"`
	IssuedAt int64  `json:"iat,omitempty"`
	Nonce    string `json:"nonce,omitempty"`
	Exp      int64  `json:"exp,omitempty"`
}

type Proof

type Proof struct {
	Jwt       string `json:"jwt,omitempty"`
	ProofType string `json:"proof_type"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	p provider,
	attestationEndpoint string,
	walletDIDIndex int,
) (*Service, error)

func (*Service) GetAttestation

func (s *Service) GetAttestation(ctx context.Context, req GetAttestationRequest) (string, error)

Jump to

Keyboard shortcuts

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