{"modulePath":"github.com/2lambda123/hyperledger-fabric","version":"v1.0.0-alpha","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package authshim\n\n## Types\n\n```go\ntype AttributeAuthShim interface {\n\n\t// ReadAttributeValue would return the value of an attribute\n\tReadAttributeValue(attName string) ([]byte, error)\n\n\t// Verify a proof of ownership of attribute atts using invocation\n\t// data as the message to prove possession of attributes on\n\tVerifyAttribute(atts []msp.Attribute)\n}\n```\nAttributeAuthShim is an interface based on top of the chaincode shim to offer invocation access control based on identity attributes TODO: Add NewAuthShimByTransientDataKey function TODO: Make it later generic enough by providing as input the MSP identity\n\n```go\ntype IdentityAuthShim interface {\n\n\t// Verify a proof of ownership of an identity using the input\n\t// message to prove possession of identity ownership on\n\tVerifyIdentityOnMessage(identity msp.Identity, message string)\n\n\t// Verify a proof of ownership of an identity using invocation\n\t// data as the message to prove possession of attributes on\n\tVerifyIdentity(identity msp.Identity)\n}\n```\nIdentityAuthShim is an interface based on top of the chaincode shim to offer invocation access control based on identities TODO: Add NewAuthShimByTransientDataKey TODO: Add as setup parameter also ApplicationMSP\n\n","path":"github.com/2lambda123/hyperledger-fabric/accesscontrol/api","name":"authshim","synopsis":"","isRedistributable":true}
