verifier

package
v1.0.2-gm Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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