digitalidcc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: GPL-3.0, GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertBytes

func GetCertBytes(certid string, stub shim.ChaincodeStubInterface) (certBytes []byte, err error)

func GetCertDBInfo

func GetCertDBInfo(certid string, stub shim.ChaincodeStubInterface) (certDBInfo *dagModules.CertBytesInfo, err error)

func GetCertIDBySubject

func GetCertIDBySubject(subject string, stub shim.ChaincodeStubInterface) (certid string, err error)

func GetCertRevocationTime

func GetCertRevocationTime(holder string, certid string, stub shim.ChaincodeStubInterface) (revocationtime time.Time, err error)

func GetIntermidateCertChains

func GetIntermidateCertChains(cert *x509.Certificate, rootIssuer string, stub shim.ChaincodeStubInterface) (certChains []*x509.Certificate, err error)

func GetRootCACert

func GetRootCACert(stub shim.ChaincodeStubInterface) (cert *x509.Certificate, err error)

func GetX509Cert

func GetX509Cert(certid string, stub shim.ChaincodeStubInterface) (cert *x509.Certificate, err error)

func QueryBranchCertsGreedy

func QueryBranchCertsGreedy(issueAddr string, stub shim.ChaincodeStubInterface) (certsInfo []*dagModules.CertHolderInfo, err error)

func ValidateCRLIssuer

func ValidateCRLIssuer(issuer string, crl *pkix.CertificateList, stub shim.ChaincodeStubInterface) (certHolder []*dagModules.CertHolderInfo, err error)

func ValidateCRLIssuerSig

func ValidateCRLIssuerSig(issuerAddr string, crl *pkix.CertificateList, stub shim.ChaincodeStubInterface) error

Validate CRL Issuer Signature

func ValidateCert

func ValidateCert(issuer string, cert *x509.Certificate, stub shim.ChaincodeStubInterface) error

This is the basic validation

func ValidateCertChain

func ValidateCertChain(cert *x509.Certificate, stub shim.ChaincodeStubInterface) error

This is the certificate chain validation To validate certificate chain signature

Types

type DigitalIdentityChainCode

type DigitalIdentityChainCode struct {
}

func (*DigitalIdentityChainCode) Init

func (*DigitalIdentityChainCode) Invoke

Jump to

Keyboard shortcuts

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