helpers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func GetAccountsInfo(stub shim.ChaincodeStubInterface, bytes [][]byte) ([]peer.Response, error)

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

func GetFullAddress(stub shim.ChaincodeStubInterface, key string) (*pb.Address, error)

GetFullAddress returns pb.Address from the ACL

Types

This section is empty.

Jump to

Keyboard shortcuts

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