verifier

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 23 modules, 140 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package verifier provides various verifier (e.g. signature)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCertificateDates

func ValidateCertificateDates(cert *x509.Certificate) error

ValidateCertificateDates used to verify if certificate was expired or not valid until later date

func VerifyPeerCertificate

func VerifyPeerCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

VerifyPeerCertificate verifies raw certs and chain certs for expiry and not yet valid dates

Types

type Signature

type Signature struct {
	Membership fab.ChannelMembership
}

Signature verifies response signature

func (*Signature) Match

func (v *Signature) Match(response []*fab.TransactionProposalResponse) error

Match matches transaction proposal responses (empty for signature verifier)

func (*Signature) Verify

func (v *Signature) Verify(response *fab.TransactionProposalResponse) error

Verify checks transaction proposal response

Jump to

Keyboard shortcuts

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