Documentation ¶
Index ¶
- Constants
- func AddAddrIfChanged(stub shim.ChaincodeStubInterface, addrMsgFromACL *pb.SignedAddress) error
- func CheckACL(stub shim.ChaincodeStubInterface, keys []string) (*pb.AclResponse, error)
- func GetAccountInfo(stub shim.ChaincodeStubInterface, addr string) (*pb.AccountInfo, error)
- func GetAccountsInfo(stub shim.ChaincodeStubInterface, bytes [][]byte) ([]peer.Response, error)
- func GetAddress(stub shim.ChaincodeStubInterface, keys string) (*pb.AclResponse, error)
- func GetFullAddress(stub shim.ChaincodeStubInterface, key string) (*pb.Address, error)
Constants ¶
View Source
const ( FnGetAccountsInfo = "getAccountsInfo" FnGetAccountInfo = "getAccountInfo" FnCheckAddress = "checkAddress" FnCheckKeys = "checkKeys" )
Variables ¶
This section is empty.
Functions ¶
func AddAddrIfChanged ¶
func AddAddrIfChanged(stub shim.ChaincodeStubInterface, addrMsgFromACL *pb.SignedAddress) error
AddAddrIfChanged looks to ACL for pb.Address saved for specific pubkeys and checks addr changed or not (does have pb.Address SignedTx field or not) if the address has changed in the ACL, we also fix it in the token channel
func CheckACL ¶
func CheckACL(stub shim.ChaincodeStubInterface, keys []string) (*pb.AclResponse, error)
CheckACL checks if the address is in the ACL
func GetAccountInfo ¶
func GetAccountInfo(stub shim.ChaincodeStubInterface, addr string) (*pb.AccountInfo, error)
GetAccountInfo returns pb.AccountInfo from the ACL
func GetAccountsInfo ¶ added in v0.0.3
GetAccountsInfo execute group requests in single invoke request each of them contains own peer.Response
func GetAddress ¶
func GetAddress(stub shim.ChaincodeStubInterface, keys string) (*pb.AclResponse, error)
GetAddress returns pb.AclResponse from the ACL
func GetFullAddress ¶
GetFullAddress returns pb.Address from the ACL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.