helpers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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