Versions in this module Expand all Collapse all v6 v6.0.0 Jul 27, 2021 Changes in this version + const ValidatorSetChangePrefix + var IsCheckOwnerRequestMethod = map[string]bool + var IsMasterKeyMethod = map[string]bool + var IsMethod = map[string]bool + func MaxInt32(v []int32) int32 + func ReturnCheckTx(code uint32, log string) types.ResponseCheckTx + type ABCIApplication struct + AppProtocolVersion uint64 + CurrentChain string + Version string + func NewABCIApplication(logger *logrus.Entry, db dbm.DB) *ABCIApplication + func (app *ABCIApplication) AddAccessor(param string, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock + func (app *ABCIApplication) CheckTx(req types.RequestCheckTx) (res types.ResponseCheckTx) + func (app *ABCIApplication) CheckTxRouter(method string, param string, nonce []byte, signature []byte, nodeID string, ...) types.ResponseCheckTx + func (app *ABCIApplication) Commit() types.ResponseCommit + func (app *ABCIApplication) DeliverTx(req types.RequestDeliverTx) (res types.ResponseDeliverTx) + func (app *ABCIApplication) DeliverTxRouter(method string, param string, nonce []byte, signature []byte, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock + func (app *ABCIApplication) EndInit(param string, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) GetAllowedMinIalForRegisterIdentityAtFirstIdp(param string) types.ResponseQuery + func (app *ABCIApplication) GetAllowedMinIalForRegisterIdentityAtFirstIdpFromStateDB(committedState bool) float64 + func (app *ABCIApplication) GetAllowedModeFromStateDB(purpose string, committedState bool) (result []int32) + func (app *ABCIApplication) GetAllowedModeList(param string) types.ResponseQuery + func (app *ABCIApplication) GetNamespaceAllowedIdentifierCountMap(committedState bool) (result map[string]int) + func (app *ABCIApplication) GetNamespaceMap(committedState bool) (result map[string]bool) + func (app *ABCIApplication) GetReferenceGroupCode(param string) types.ResponseQuery + func (app *ABCIApplication) GetReferenceGroupCodeByAccessorID(param string) types.ResponseQuery + func (app *ABCIApplication) Info(req types.RequestInfo) (resInfo types.ResponseInfo) + func (app *ABCIApplication) InitChain(req types.RequestInitChain) types.ResponseInitChain + func (app *ABCIApplication) Query(reqQuery types.RequestQuery) (res types.ResponseQuery) + func (app *ABCIApplication) QueryRouter(method string, param string, height int64) types.ResponseQuery + func (app *ABCIApplication) ReturnDeliverTxLog(code uint32, log string, extraData string) types.ResponseDeliverTx + func (app *ABCIApplication) ReturnDeliverTxLogWithAttributes(code uint32, log string, additionalAttributes []kv.Pair) types.ResponseDeliverTx + func (app *ABCIApplication) ReturnQuery(value []byte, log string, height int64) types.ResponseQuery + func (app *ABCIApplication) SetAllowedMinIalForRegisterIdentityAtFirstIdp(param string, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) SetAllowedModeList(param string, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) SetInitData(param string, nodeID string) types.ResponseDeliverTx + func (app *ABCIApplication) Validators() (validators []types.Validator) + type ASNode struct + Active bool + ID string + MinAal float64 + MinIal float64 + Name string + ServiceID string + type ASNodeResult struct + ID string + MinAal float64 + MinIal float64 + Name string + SupportedNamespaceList []string + type ASResponse struct + AsID string + ErrorCode *int32 + ReceivedData *bool + Signed *bool + type ASWithMqNode struct + ID string + MinAal float64 + MinIal float64 + Mq []MsqAddress + Name string + PublicKey string + SupportedNamespaceList []string + type ASWithMqNodeBehindProxy struct + MinAal float64 + MinIal float64 + Name string + NodeID string + Proxy struct{ ... } + PublicKey string + SupportedNamespaceList []string + type ASorRPBehindProxy struct + Config string + MasterPublicKey string + NodeID string + NodeName string + PublicKey string + Role string + type Accessor struct + AccessorGroupID string + AccessorPublicKey string + AccessorType string + Active bool + Owner string + type AddAccessorParam struct + AccessorID string + AccessorPublicKey string + AccessorType string + IdentityIdentifierHash string + IdentityNamespace string + ReferenceGroupCode string + RequestID string + type AddErrorCodeParam struct + Description string + ErrorCode int32 + Type string + type AddIdentityParam struct + NewIdentityList []Identity + ReferenceGroupCode string + RequestID string + type AddNodeToProxyNodeParam struct + Config string + NodeID string + ProxyNodeID string + type AddNodeTokenParam struct + Amount float64 + NodeID string + type AddServiceParam struct + DataSchema string + DataSchemaVersion string + ServiceID string + ServiceName string + type AppState struct + CurrentBlockHeight int64 + HashData []byte + func NewAppState(db dbm.DB) (appState *AppState, err error) + func (appState *AppState) Delete(key []byte) error + func (appState *AppState) DeleteVersioned(key []byte) error + func (appState *AppState) Get(key []byte, committed bool) (value []byte, err error) + func (appState *AppState) GetVersioned(key []byte, height int64, committed bool) (value []byte, err error) + func (appState *AppState) Has(key []byte, committed bool) (bool, error) + func (appState *AppState) HasVersioned(key []byte, committed bool) (bool, error) + func (appState *AppState) Save() error + func (appState *AppState) SaveMetadata() error + func (appState *AppState) Set(key, value []byte) + func (appState *AppState) SetVersioned(key, value []byte) error + type AppStateMetadata struct + AppHash []byte + Height int64 + type ApproveService struct + Active bool + type CheckExistingAccessorGroupIDParam struct + AccessorGroupID string + type CheckExistingAccessorIDParam struct + AccessorID string + type CheckExistingIdentityParam struct + IdentityIdentifierHash string + IdentityNamespace string + ReferenceGroupCode string + type CheckExistingIdentityResult struct + Exist bool + type CheckExistingResult struct + Exist bool + type ClearRegisterIdentityTimeoutParam struct + HashID string + type CloseRequestParam struct + RequestID string + ResponseValidList []ResponseValid + type CreateAsResponseParam struct + ErrorCode *int32 + RequestID string + ServiceID string + Signature string + type CreateIdpResponseParam struct + Aal float64 + ErrorCode *int32 + Ial float64 + RequestID string + Signature string + Status string + type CreateMessageParam struct + Message string + MessageID string + Purpose string + type CreateRequestParam struct + DataRequestList []DataRequest + IdPIDList []string + MessageHash string + MinAal float64 + MinIal float64 + MinIdp int + Mode int32 + Purpose string + RequestID string + Timeout int + type DataRequest struct + As []string + Count int + RequestParamsHash string + ResponseList []ASResponse + ServiceID string + type DisableAccessorMethodParam struct + AccessorID string + type DisableMsqDestinationParam struct + HashID string + type DisableNamespaceParam struct + Namespace string + type DisableNodeParam struct + NodeID string + type DisableServiceDestinationByNDIDParam struct + NodeID string + ServiceID string + type DisableServiceDestinationParam struct + ServiceID string + type DisableServiceParam struct + ServiceID string + type EndInitParam struct + type GetAccessorGroupIDParam struct + AccessorID string + type GetAccessorGroupIDResult struct + AccessorGroupID string + type GetAccessorKeyParam struct + AccessorID string + type GetAccessorKeyResult struct + AccessorPublicKey string + Active bool + type GetAccessorMethodParam struct + AccessorID string + type GetAccessorMethodResult struct + AccessorKey string + AccessorType string + Commitment string + type GetAccessorOwnerParam struct + AccessorID string + type GetAccessorOwnerResult struct + NodeID string + type GetAccessorsInAccessorGroupParam struct + AccessorGroupID string + IdpID string + type GetAccessorsInAccessorGroupResult struct + AccessorList []string + type GetAllowedMinIalForRegisterIdentityAtFirstIdpResult struct + MinIal float64 + type GetAllowedModeListParam struct + Purpose string + type GetAllowedModeListResult struct + AllowedModeList []int32 + type GetAsNodesByServiceIdParam struct + NodeIDList []string + ServiceID string + type GetAsNodesByServiceIdResult struct + Node []ASNode + type GetAsNodesByServiceIdWithNameResult struct + Node []ASNodeResult + type GetAsNodesInfoByServiceIdResult struct + Node []interface{} + type GetDataSignatureParam struct + NodeID string + RequestID string + ServiceID string + type GetDataSignatureResult struct + Signature string + type GetErrorCodeListParam struct + Type string + type GetErrorCodeListResult struct + Description string + ErrorCode int32 + type GetIdentityInfoParam struct + IdentityIdentifierHash string + IdentityNamespace string + NodeID string + ReferenceGroupCode string + type GetIdentityInfoResult struct + Ial float64 + Laal *bool + Lial *bool + ModeList []int32 + type GetIdpNodesInfoResult struct + Node []IdpNode + type GetIdpNodesParam struct + FilterForNodeID *string + IdentityIdentifierHash string + IdentityNamespace string + IsIdpAgent *bool + MinAal float64 + MinIal float64 + ModeList []int32 + NodeIDList []string + OnTheFlySupport *bool + ReferenceGroupCode string + SupportedRequestMessageDataUrlTypeList []string + type GetIdpNodesResult struct + Node []MsqDestinationNode + type GetMessageDetailResult struct + CreationBlockHeight int64 + CreationChainID string + Message string + MessageID string + Purpose string + RequesterNodeID string + type GetMessageParam struct + MessageID string + type GetMessageResult struct + Message string + type GetMqAddressesParam struct + NodeID string + type GetMqAddressesResult []MsqAddress + type GetNodeIDListParam struct + Role string + type GetNodeIDListResult struct + NodeIDList []string + type GetNodeInfoParam struct + NodeID string + type GetNodeInfoResult struct + Active bool + IsIdpAgent *bool + MasterPublicKey string + MaxAal *float64 + MaxIal *float64 + Mq []MsqAddress + NodeName string + OnTheFlySupport *bool + Proxy *ProxyNodeInfo + PublicKey string + Role string + SupportedRequestMessageDataUrlTypeList *[]string + UseWhitelist *bool + Whitelist *[]string + type GetNodeMasterPublicKeyParam struct + NodeID string + type GetNodeMasterPublicKeyResult struct + MasterPublicKey string + type GetNodePublicKeyParam struct + NodeID string + type GetNodePublicKeyResult struct + PublicKey string + type GetNodeTokenParam struct + NodeID string + type GetNodeTokenResult struct + Amount float64 + type GetNodesBehindProxyNodeParam struct + ProxyNodeID string + type GetNodesBehindProxyNodeResult struct + Nodes []interface{} + type GetPriceFuncParam struct + Func string + type GetPriceFuncResult struct + Price float64 + type GetReferenceGroupCodeByAccessorIDParam struct + AccessorID string + type GetReferenceGroupCodeParam struct + IdentityIdentifierHash string + IdentityNamespace string + type GetReferenceGroupCodeResult struct + ReferenceGroupCode string + type GetRequestDetailResult struct + CreationBlockHeight int64 + CreationChainID string + DataRequestList []DataRequest + IdPIDList []string + IsClosed bool + IsTimedOut bool + MessageHash string + MinAal float64 + MinIal float64 + MinIdp int + Mode int32 + Purpose string + RequestID string + RequesterNodeID string + Responses []Response + Timeout int + type GetRequestParam struct + RequestID string + type GetRequestResult struct + IsClosed bool + IsTimedOut bool + MessageHash string + Mode int32 + type GetServiceDetailParam struct + ServiceID string + type GetServicePriceCeilingParam struct + ServiceID string + type GetServicePriceCeilingResult struct + PriceCeilingByCurrencyList []PriceCeilingByCurrency + type GetServicePriceListParam struct + NodeID string + ServiceID string + type GetServicePriceListResult struct + ServicePriceListByNode []ServicePriceListByNode + type GetServicePriceMinEffectiveDatetimeDelayResult struct + DurationSecond uint32 + type GetServicesByAsIDParam struct + AsID string + type GetServicesByAsIDResult struct + Services []Service + type IdPBehindProxy struct + Config string + IsIdpAgent bool + MasterPublicKey string + MaxAal float64 + MaxIal float64 + NodeID string + NodeName string + OnTheFlySupport bool + PublicKey string + Role string + SupportedRequestMessageDataUrlTypeList []string + type Identity struct + IdentityIdentifierHash string + IdentityNamespace string + type IdpNode struct + Ial *float64 + IsIdpAgent bool + MaxAal float64 + MaxIal float64 + ModeList *[]int32 + Mq []MsqAddress + Name string + NodeID string + OnTheFlySupport bool + Proxy *IdpNodeProxy + PublicKey string + SupportedRequestMessageDataUrlTypeList []string + UseWhitelist *bool + Whitelist *[]string + type IdpNodeProxy struct + Config string + Mq []MsqAddress + NodeID string + PublicKey string + type InitNDIDParam struct + ChainHistoryInfo string + MasterPublicKey string + NodeID string + PublicKey string + type IsInitEndedParam struct + type IsInitEndedResult struct + InitEnded bool + type KeyValue struct + Key []byte + Value []byte + type MaxIalAal struct + MaxAal float64 + MaxIal float64 + type MsqAddress struct + IP string + Port int64 + type MsqDestination struct + Nodes []Node + type MsqDestinationNode struct + ID string + Ial *float64 + IsIdpAgent bool + Laal *bool + Lial *bool + MaxAal float64 + MaxIal float64 + ModeList *[]int32 + Name string + OnTheFlySupport bool + SupportedRequestMessageDataUrlTypeList []string + type Namespace struct + Active bool + AllowedActiveIdentifierCountInReferenceGroup int32 + AllowedIdentifierCountInReferenceGroup int32 + Description string + Namespace string + type Node struct + Active bool + First bool + Ial float64 + NodeID string + TimeoutBlock int64 + type NodeDetail struct + Active bool + MasterPublicKey string + NodeName string + PublicKey string + Role string + type NodePublicKey struct + NodeID string + PublicKey string + type PriceCeilingByCurrency struct + Currency string + Price float64 + type Proxy struct + Config string + ProxyNodeID string + type ProxyNodeInfo struct + Config string + MasterPublicKey string + Mq []MsqAddress + NodeID string + NodeName string + PublicKey string + type ReduceNodeTokenParam struct + Amount float64 + NodeID string + type RegisterAccessorParam struct + AccessorGroupID string + AccessorID string + AccessorPublicKey string + AccessorType string + type RegisterIdentityParam struct + AccessorID string + AccessorPublicKey string + AccessorType string + Ial float64 + Laal *bool + Lial *bool + ModeList []int32 + NewIdentityList []Identity + ReferenceGroupCode string + RequestID string + type RegisterNode struct + IsIdPAgent *bool + MasterPublicKey string + MaxAal float64 + MaxIal float64 + NodeID string + NodeName string + OnTheFlySupport *bool + PublicKey string + Role string + UseWhitelist *bool + Whitelist []string + type RegisterServiceDestinationByNDIDParam struct + NodeID string + ServiceID string + type RegisterServiceDestinationParam struct + MinAal float64 + MinIal float64 + ServiceID string + SupportedNamespaceList []string + type RemoveErrorCodeParam struct + ErrorCode int32 + Type string + type RemoveNodeFromProxyNode struct + NodeID string + type Report struct + Data string + Method string + Price float64 + type RequestIDParam struct + RequestID string + type Response struct + Aal *float64 + ErrorCode *int32 + Ial *float64 + IdpID string + Signature *string + Status *string + ValidIal *bool + ValidSignature *bool + type ResponseValid struct + IdpID string + ValidIal *bool + ValidSignature *bool + type RevokeAccessorParam struct + AccessorIDList []string + RequestID string + type RevokeAndAddAccessorParam struct + AccessorID string + AccessorPublicKey string + AccessorType string + RequestID string + RevokingAccessorID string + type RevokeIdentityAssociationParam struct + IdentityIdentifierHash string + IdentityNamespace string + ReferenceGroupCode string + RequestID string + type Service struct + Active bool + MinAal float64 + MinIal float64 + ServiceID string + SupportedNamespaceList []string + Suspended bool + type ServiceDetail struct + Active bool + DataSchema string + DataSchemaVersion string + ServiceID string + ServiceName string + type ServicePrice struct + CreationBlockHeight int64 + CreationChainID string + Detail string + EffectiveDatetime time.Time + MoreInfoURL string + PriceByCurrencyList []ServicePriceByCurrency + type ServicePriceByCurrency struct + Currency string + MaxPrice float64 + MinPrice float64 + type ServicePriceListByNode struct + NodeID string + ServicePriceList []ServicePrice + type SetAllowedMinIalForRegisterIdentityAtFirstIdpParam struct + MinIal float64 + type SetAllowedModeListParam struct + AllowedModeList []int32 + Purpose string + type SetDataReceivedParam struct + AsID string + RequestID string + ServiceID string + type SetInitDataParam struct + KVList []KeyValue + type SetLastBlockParam struct + BlockHeight int64 + type SetMqAddressesParam struct + Addresses []MsqAddress + type SetNodeTokenParam struct + Amount float64 + NodeID string + type SetPriceFuncParam struct + Func string + Price float64 + type SetServicePriceCeilingParam struct + PriceCeilingByCurrencyList []PriceCeilingByCurrency + ServiceID string + type SetServicePriceMinEffectiveDatetimeDelayParam struct + DurationSecond uint32 + type SetServicePriceParam struct + Detail string + EffectiveDatetime time.Time + MoreInfoURL string + PriceByCurrencyList []ServicePriceByCurrency + ServiceID string + type SetValidatorParam struct + Power int64 + PublicKey string + type TimeOutBlockRegisterIdentity struct + TimeOutBlock int64 + type TimeOutRequestParam struct + RequestID string + ResponseValidList []ResponseValid + type TransferNDIDParam struct + PublicKey string + type UpdateIdentityModeListParam struct + IdentityIdentifierHash string + IdentityNamespace string + ModeList []int32 + ReferenceGroupCode string + RequestID string + type UpdateIdentityParam struct + Ial *float64 + IdentityIdentifierHash string + IdentityNamespace string + Laal *bool + Lial *bool + ReferenceGroupCode string + type UpdateNamespaceParam struct + AllowedActiveIdentifierCountInReferenceGroup int32 + AllowedIdentifierCountInReferenceGroup int32 + Description string + Namespace string + type UpdateNodeByNDIDParam struct + IsIdPAgent *bool + MaxAal float64 + MaxIal float64 + NodeID string + NodeName string + OnTheFlySupport *bool + UseWhitelist *bool + Whitelist []string + type UpdateNodeParam struct + MasterPublicKey string + PublicKey string + SupportedRequestMessageDataUrlTypeList []string + type UpdateNodeProxyNodeParam struct + Config string + NodeID string + ProxyNodeID string + type UpdateServiceDestinationParam struct + MinAal float64 + MinIal float64 + ServiceID string + SupportedNamespaceList []string + type UpdateServiceParam struct + DataSchema string + DataSchemaVersion string + ServiceID string + ServiceName string Other modules containing this package github.com/ndidplatform/smart-contract/v4 github.com/ndidplatform/smart-contract/v5 github.com/ndidplatform/smart-contract/v7 github.com/ndidplatform/smart-contract/v8 github.com/ndidplatform/smart-contract/v9