在 Hyperledger Fabric 的链码中,是否可以检查给定名称的身份是否存在?也就是说,像这样:
func (c *SmartContract) UserExists(ctx contractapi.TransactionContextInterface, username string) bool {
// if an identity exists with the username, then return true, otherwise return false.
}