package
0.6.1-preview
Repository: https://github.com/2lambda123/hyperledger-fabric.git
Documentation: pkg.go.dev

# Packages

Package protos is a generated protocol buffer package.

# Functions

BuildAttributesHeader builds a header attribute from a map of attribute names and positions.
CreateAttributesMetadata create the AttributesMetadata from the original metadata.
CreateAttributesMetadataFromCert creates the AttributesMetadata from the original metadata and certificate "cert".
CreateAttributesMetadataObjectFromCert creates an AttributesMetadata object from certificate "cert", metadata and the attributes keys.
DecryptAttributeValue decrypts "encryptedValue" using "attributeKey" and return the decrypted value.
EncryptAttributeValue encrypts "attributeValue" using "attributeKey".
EncryptAttributeValuePK0 encrypts "attributeValue" using a key derived from preK0.
GetAttributesMetadata object from the original metadata "metadata".
GetKForAttribute derives the K for the attribute "attributeName" and returns the key.
GetValueForAttribute derives the K for the attribute "attributeName" and returns the value.
ParseAttributesHeader parses a string and returns a map with the attributes.
ReadAttributeHeader read the header of the attributes.
ReadTCertAttribute read the attribute with name "attributeName" and returns the value and a boolean indicating if the returned value is encrypted or not.
ReadTCertAttributeByPosition read the attribute stored in the position "position" of the tcert.

# Variables

HeaderAttributeName is the name used to derivate the K used to encrypt/decrypt the header.
TCertAttributesHeaders is the ASN1 object identifier of attributes header.
TCertEncAttributesBase is the base ASN1 object identifier for attributes.