如何检查我的 Hyperledger Fabric 的 Golang 链代码中是否存在用户名?

问题描述 投票:0回答:0

在 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.
}
go hyperledger-fabric identity chaincode
© www.soinside.com 2019 - 2024. All rights reserved.