permission

package
v0.0.0-...-d9e9996 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func IdentifyAK(akuri string, sign *pb.SignatureInfo, msg []byte) (bool, error)

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.

Directories

Path Synopsis
acl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL