github.com/s7techlab/cckit@v0.10.5/identity/identity.go (about) 1 package identity 2 3 import ( 4 "github.com/hyperledger/fabric/msp" 5 ) 6 7 // Identity interface for invoker (tx creator) and grants, stored in chain code state 8 type Identity interface { 9 msp.Identity 10 11 // GetSubject string representation of X.509 cert subject 12 GetSubject() string 13 // GetIssuer string representation of X.509 cert issuer 14 GetIssuer() string 15 16 // GetPublicKey *rsa.PublicKey or *dsa.PublicKey or *ecdsa.PublicKey: 17 GetPublicKey() interface{} 18 GetPEM() []byte 19 }