did

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

* Copyright (C) 2021 The ontology Authors * This file is part of The ontology library. * * The ontology is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ontology is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ontology. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DidProcessor

type DidProcessor interface {
	VerifySig(did string, index int, msg []byte, sig []byte, pubkeyBytes []byte) error
	VerifySigEIP712(did string, index int, msg []byte, sig []byte, pubkeyBytes []byte, data EIP712Msg) error
	Sign(did string, index int, msg []byte) ([]byte, error)
	VerifyPresentation(presentation string, requiredTypes []*modules.VCFilter) error
	VerifyCredential(credential string, trustedDIDs []string) error
	GetCredentialJsons(presentation string) ([]string, error)
}

type EIP712Msg added in v0.4.0

type EIP712Msg struct {
	Type       string `json:"type"`
	Did        string `json:"did"`
	Nonce      string `json:"nonce"`
	ServerName string `json:"serverName"`
	ServerURL  string `json:"serverUrl"`
	ServerDid  string `json:"serverDid"`
	Created    uint64 `json:"created"`
}

Directories

Path Synopsis
sui

Jump to

Keyboard shortcuts

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