Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + var PreAdmin = []byte + var PreDelegateStatus = []byte + var PreRoleFunc = []byte + var PreRoleToken = []byte + func AssignFuncsToRole(native *native.NativeService) ([]byte, error) + func AssignOntIDsToRole(native *native.NativeService) ([]byte, error) + func Delegate(native *native.NativeService) ([]byte, error) + func Init() + func InitContractAdmin(native *native.NativeService) ([]byte, error) + func RegisterAuthContract(native *native.NativeService) + func StringsDedupAndSort(s []string) []string + func Transfer(native *native.NativeService) ([]byte, error) + func VerifyToken(native *native.NativeService) ([]byte, error) + func Withdraw(native *native.NativeService) ([]byte, error) + type AuthToken struct + func (this *AuthToken) Deserialization(source *common.ZeroCopySource) error + func (this *AuthToken) Serialization(sink *common.ZeroCopySink) + type DIDsToRoleParam struct + AdminOntID []byte + ContractAddr common.Address + KeyNo uint64 + Persons [][]byte + Role []byte + func (this *DIDsToRoleParam) Deserialization(source *common.ZeroCopySource) error + func (this *DIDsToRoleParam) Serialization(sink *common.ZeroCopySink) + type DelegateParam struct + ContractAddr common.Address + From []byte + KeyNo uint64 + Level uint64 + Period uint64 + Role []byte + To []byte + func (this *DelegateParam) Deserialization(source *common.ZeroCopySource) error + func (this *DelegateParam) Serialization(sink *common.ZeroCopySink) + type DelegateStatus struct + func (this *DelegateStatus) Deserialization(source *common.ZeroCopySource) error + func (this *DelegateStatus) Serialization(sink *common.ZeroCopySink) + type FuncsToRoleParam struct + AdminOntID []byte + ContractAddr common.Address + FuncNames []string + KeyNo uint64 + Role []byte + func (this *FuncsToRoleParam) Deserialization(source *common.ZeroCopySource) error + func (this *FuncsToRoleParam) Serialization(sink *common.ZeroCopySink) + type InitContractAdminParam struct + AdminOntID []byte + func (this *InitContractAdminParam) Deserialization(source *common.ZeroCopySource) error + func (this *InitContractAdminParam) Serialization(sink *common.ZeroCopySink) + type Status struct + func (this *Status) Deserialization(source *common.ZeroCopySource) error + func (this *Status) Serialization(sink *common.ZeroCopySink) + type TransferParam struct + ContractAddr common.Address + KeyNo uint64 + NewAdminOntID []byte + func (this *TransferParam) Deserialization(source *common.ZeroCopySource) error + func (this *TransferParam) Serialization(sink *common.ZeroCopySink) + type VerifyTokenParam struct + Caller []byte + ContractAddr common.Address + Fn string + KeyNo uint64 + func (this *VerifyTokenParam) Deserialization(source *common.ZeroCopySource) error + func (this *VerifyTokenParam) Serialization(sink *common.ZeroCopySink) + type WithdrawParam struct + ContractAddr common.Address + Delegate []byte + Initiator []byte + KeyNo uint64 + Role []byte + func (this *WithdrawParam) Deserialization(source *common.ZeroCopySource) error + func (this *WithdrawParam) Serialization(sink *common.ZeroCopySink)