Documentation ¶
Index ¶
- Constants
- func GetACLSeparator() string
- func GetAK2AccountBucket() string
- func GetAKAccountSeparator() string
- func GetAccount2ContractBucket() string
- func GetAccountBcnameSep() string
- func GetAccountBucket() string
- func GetAccountContractValue() string
- func GetAccountPrefix() string
- func GetAccountSize() int
- func GetAkLimit() int
- func GetContract2AccountBucket() string
- func GetContractBucket() string
- func GetContractNameMaxSize() int
- func GetContractNameMinSize() int
- func IsAccount(name string) int
- func MakeAK2AccountKey(ak string, accountName string) string
- func MakeAccountContractKey(accountName string, contractName string) string
- func MakeAccountKey(bcname string, accountName string) string
- func MakeContractMethodKey(contractName string, methodName string) string
- func ValidRawAccount(accountName string) error
- type AclCtx
- type AclManager
- type LedgerRely
Constants ¶
const ( SubModName = "$acl" StatusOK = 200 )
Variables ¶
This section is empty.
Functions ¶
func GetACLSeparator ¶
func GetACLSeparator() string
GetACLSeparator return the acl separator string
func GetAK2AccountBucket ¶
func GetAK2AccountBucket() string
GetAK2AccountBucket return the ak2Account bucket
func GetAKAccountSeparator ¶
func GetAKAccountSeparator() string
GetAKAccountSeparator return the separator between address and account
func GetAccount2ContractBucket ¶
func GetAccount2ContractBucket() string
GetAccount2ContractBucket get the bucket name of account to contract map
func GetAccountBcnameSep ¶
func GetAccountBcnameSep() string
GetAccountBcnameSep return the separator string for account and blockchain name
func GetAccountBucket ¶
func GetAccountBucket() string
GetAccountBucket return the account bucket name
func GetAccountContractValue ¶
func GetAccountContractValue() string
GetAccountContractValue return accountContractValue
func GetContract2AccountBucket ¶
func GetContract2AccountBucket() string
GetContract2AccountBucket get the bucket name of contract to account map
func GetContractBucket ¶
func GetContractBucket() string
GetContractBucket return the contract bucket name
func GetContractNameMaxSize ¶
func GetContractNameMaxSize() int
GetContractNameMaxSize return the contract name max size
func GetContractNameMinSize ¶
func GetContractNameMinSize() int
GetContractNameMinSize return the contract name min size
func MakeAK2AccountKey ¶
MakeAK2AccountKey generate key mixed ak with account as prefix key
func MakeAccountContractKey ¶
MakeAccountContractKey generate account and contract mapping key
func MakeAccountKey ¶
MakeAccountKey generate account key using blockchain name and account number
func MakeContractMethodKey ¶
MakeContractMethodKey generate contract and account mapping key
func ValidRawAccount ¶
ValidRawAccount validate account number
Types ¶
type AclManager ¶
type LedgerRely ¶
type LedgerRely interface { // 从创世块获取创建合约账户消耗gas GetNewAccountGas() (int64, error) // 获取状态机最新确认快照 GetTipXMSnapshotReader() (ledger.SnapshotReader, error) }