Documentation ¶
Index ¶
- func CheckContractMethodPerm(aksuri []string, signs []*pb.SignatureInfo, msg []byte, contractName string, ...) (bool, error)
- func IdentifyAK(akuri string, sign *pb.SignatureInfo, msg []byte) (bool, error)
- func IdentifyAccount(account string, aksuri []string, signs []*pb.SignatureInfo, msg []byte, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContractMethodPerm ¶
func CheckContractMethodPerm(aksuri []string, signs []*pb.SignatureInfo, msg []byte, contractName string, methodName string, aclMgr acl.ManagerInterface) (bool, error)
CheckContractMethodPerm checks whether the aks and signs are match, and those aks satisfy the ACL of a contract method <contractName, methodName>. Return true if the signatures match aks and satisfy the ACL.
func IdentifyAK ¶
IdentifyAK checks whether the sign matches the given ak, akuri is the address(or address uri like AccountA/AddressB) Return true if ak the sign match
func IdentifyAccount ¶
func IdentifyAccount(account string, aksuri []string, signs []*pb.SignatureInfo, msg []byte, aclMgr acl.ManagerInterface) (bool, error)
IdentifyAccount checks whether the aks and signs are match, and these aks could represent the given account via account's ACL strategy. Return true if the signatures match aks and aks could represent the account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.