Documentation ¶
Index ¶
- func GetCustodian(cp configProvider, network string) (string, error)
- func InstallViews(sp view.ServiceProvider) error
- func IsCustodian(cp configProvider) (bool, error)
- func LookupKey(context view.Context, request *LookupKeyRequest) ([]byte, error)
- func ReadPublicParameters(context view2.ServiceProvider, network, namespace string) ([]byte, error)
- type ApprovalRequest
- type ApprovalResponse
- type BroadcastRequest
- type BroadcastResponderView
- type BroadcastResponse
- type BroadcastView
- type Certification
- type Custodian
- type Driver
- type Executor
- func (e *Executor) Done()
- func (e *Executor) GetState(namespace string, key string) ([]byte, error)
- func (e *Executor) GetStateMetadata(namespace string, id string) (map[string][]byte, error)
- func (e *Executor) GetStateRangeScanIterator(namespace string, start string, end string) (driver.Iterator, error)
- type Identity
- type IdentityProvider
- type InteractiveCertification
- type Iterator
- type LedgerWrapper
- type LookupKeyRequest
- type LookupKeyRequestRespondView
- type LookupKeyRequestView
- type LookupKeyResponse
- type Manager
- type Network
- func (n *Network) AreTokensSpent(context view.Context, namespace string, IDs []string) ([]bool, error)
- func (n *Network) Broadcast(blob interface{}) error
- func (n *Network) Channel() string
- func (n *Network) ComputeTxID(id *driver.TxID) string
- func (n *Network) EnvelopeExists(id string) bool
- func (n *Network) FetchPublicParameters(namespace string) ([]byte, error)
- func (n *Network) GetEnrollmentID(raw []byte) (string, error)
- func (n *Network) GetRWSet(id string, results []byte) (driver.RWSet, error)
- func (n *Network) GetTransient(id string) (driver.TransientMap, error)
- func (n *Network) IsFinal(ctx context.Context, id string) error
- func (n *Network) IsFinalForParties(id string, endpoints ...view.Identity) error
- func (n *Network) Ledger() (driver.Ledger, error)
- func (n *Network) LocalMembership() driver.LocalMembership
- func (n *Network) LookupTransferMetadataKey(namespace string, startingTxID string, key string, timeout time.Duration) ([]byte, error)
- func (n *Network) Name() string
- func (n *Network) NewEnvelope() driver.Envelope
- func (n *Network) QueryTokens(context view.Context, namespace string, IDs []*token.ID) ([][]byte, error)
- func (n *Network) RequestApproval(context view.Context, namespace string, requestRaw []byte, ...) (driver.Envelope, error)
- func (n *Network) StoreEnvelope(id string, env []byte) error
- func (n *Network) StoreTransient(id string, transient driver.TransientMap) error
- func (n *Network) SubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
- func (n *Network) TransientExists(id string) bool
- func (n *Network) UnsubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
- func (n *Network) Vault(namespace string) (driver.Vault, error)
- type ONS
- type Orion
- type PublicParamsRequest
- type PublicParamsRequestResponderView
- type PublicParamsRequestView
- type PublicParamsResponse
- type QueryTokensRequest
- type QueryTokensResponse
- type RWSWrapper
- func (r *RWSWrapper) Bytes() ([]byte, error)
- func (r *RWSWrapper) DeleteState(namespace string, key string) error
- func (r *RWSWrapper) Done()
- func (r *RWSWrapper) Equals(right interface{}, namespace string) error
- func (r *RWSWrapper) GetState(namespace string, key string) ([]byte, error)
- func (r *RWSWrapper) SetState(namespace string, key string, value []byte) error
- type RWSetProcessor
- type ReadOnlyRWSWrapper
- func (r *ReadOnlyRWSWrapper) Bytes() ([]byte, error)
- func (r *ReadOnlyRWSWrapper) DeleteState(namespace string, key string) error
- func (r *ReadOnlyRWSWrapper) Done()
- func (r *ReadOnlyRWSWrapper) Equals(right interface{}, namespace string) error
- func (r *ReadOnlyRWSWrapper) GetState(namespace string, key string) ([]byte, error)
- func (r *ReadOnlyRWSWrapper) SetState(namespace string, key string, value []byte) error
- type RequestApprovalResponderView
- type RequestApprovalView
- type RequestQueryTokensResponderView
- type RequestQueryTokensView
- type RequestSpentTokensResponderView
- type RequestSpentTokensView
- type RequestTxStatusResponderView
- type RequestTxStatusView
- type SpentTokensRequest
- type SpentTokensResponse
- type TMS
- type Token
- type TxRWSWrapper
- func (r *TxRWSWrapper) Bytes() ([]byte, error)
- func (r *TxRWSWrapper) DeleteState(namespace string, key string) error
- func (r *TxRWSWrapper) Done()
- func (r *TxRWSWrapper) Equals(right interface{}, namespace string) error
- func (r *TxRWSWrapper) GetState(namespace string, key string) ([]byte, error)
- func (r *TxRWSWrapper) SetState(namespace string, key string, value []byte) error
- type TxStatusRequest
- type TxStatusResponse
- type Vault
- type Wallets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCustodian ¶
func InstallViews ¶
func InstallViews(sp view.ServiceProvider) error
func IsCustodian ¶
func ReadPublicParameters ¶
func ReadPublicParameters(context view2.ServiceProvider, network, namespace string) ([]byte, error)
Types ¶
type ApprovalRequest ¶
type ApprovalResponse ¶
type ApprovalResponse struct {
Envelope []byte
}
type BroadcastRequest ¶
type BroadcastResponderView ¶
type BroadcastResponderView struct{}
type BroadcastResponse ¶
type BroadcastResponse struct {
Err error
}
type BroadcastView ¶
func NewBroadcastView ¶
func NewBroadcastView(network driver.Network, blob interface{}) *BroadcastView
type Certification ¶
type Certification struct {
Interactive *InteractiveCertification `yaml:"interactive,omitempty"`
}
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) GetStateMetadata ¶
type IdentityProvider ¶
type InteractiveCertification ¶
type InteractiveCertification struct {
IDs []string `yaml:"ids,omitempty"`
}
type LedgerWrapper ¶
type LedgerWrapper struct {
// contains filtered or unexported fields
}
type LookupKeyRequest ¶
type LookupKeyRequest struct { Network string Namespace string StartingTxID string Key string Timeout time.Duration }
func (*LookupKeyRequest) String ¶
func (l *LookupKeyRequest) String() string
type LookupKeyRequestRespondView ¶
type LookupKeyRequestRespondView struct{}
type LookupKeyRequestView ¶
type LookupKeyRequestView struct {
*LookupKeyRequest
}
func NewLookupKeyRequestView ¶
type LookupKeyResponse ¶
type LookupKeyResponse struct {
Raw []byte
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) TranslatePath ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func NewNetwork ¶
func NewNetwork(sp view2.ServiceProvider, ip IdentityProvider, n *orion.NetworkService) *Network
func (*Network) AreTokensSpent ¶
func (*Network) EnvelopeExists ¶
func (*Network) FetchPublicParameters ¶
func (*Network) GetTransient ¶
func (n *Network) GetTransient(id string) (driver.TransientMap, error)
func (*Network) IsFinalForParties ¶
func (*Network) LocalMembership ¶
func (n *Network) LocalMembership() driver.LocalMembership
func (*Network) LookupTransferMetadataKey ¶
func (*Network) NewEnvelope ¶
func (*Network) QueryTokens ¶
func (*Network) RequestApproval ¶
func (*Network) StoreTransient ¶
func (n *Network) StoreTransient(id string, transient driver.TransientMap) error
func (*Network) SubscribeTxStatusChanges ¶
func (n *Network) SubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
func (*Network) TransientExists ¶
func (*Network) UnsubscribeTxStatusChanges ¶
func (n *Network) UnsubscribeTxStatusChanges(txID string, listener driver.TxStatusChangeListener) error
type ONS ¶
type ONS interface { Name() string MetadataService() *orion.MetadataService }
type PublicParamsRequest ¶
type PublicParamsRequestResponderView ¶
type PublicParamsRequestResponderView struct{}
type PublicParamsRequestView ¶
type PublicParamsRequestView struct { Network string Namespace string // contains filtered or unexported fields }
func NewPublicParamsRequestView ¶
func NewPublicParamsRequestView(network string, namespace string) *PublicParamsRequestView
type PublicParamsResponse ¶
type PublicParamsResponse struct {
Raw []byte
}
type QueryTokensRequest ¶
type QueryTokensResponse ¶
type QueryTokensResponse struct {
Content [][]byte
}
type RWSWrapper ¶
type RWSWrapper struct {
// contains filtered or unexported fields
}
func NewRWSWrapper ¶
func NewRWSWrapper(r *orion.RWSet) *RWSWrapper
func (*RWSWrapper) Bytes ¶
func (r *RWSWrapper) Bytes() ([]byte, error)
func (*RWSWrapper) DeleteState ¶
func (r *RWSWrapper) DeleteState(namespace string, key string) error
func (*RWSWrapper) Done ¶
func (r *RWSWrapper) Done()
func (*RWSWrapper) Equals ¶
func (r *RWSWrapper) Equals(right interface{}, namespace string) error
type RWSetProcessor ¶
type RWSetProcessor struct {
// contains filtered or unexported fields
}
func NewTokenRWSetProcessor ¶
func NewTokenRWSetProcessor(network ONS, ns string, sp view2.ServiceProvider, ownership network.Authorization, issued network.Issued) *RWSetProcessor
type ReadOnlyRWSWrapper ¶
type ReadOnlyRWSWrapper struct {
// contains filtered or unexported fields
}
func (*ReadOnlyRWSWrapper) Bytes ¶
func (r *ReadOnlyRWSWrapper) Bytes() ([]byte, error)
func (*ReadOnlyRWSWrapper) DeleteState ¶
func (r *ReadOnlyRWSWrapper) DeleteState(namespace string, key string) error
func (*ReadOnlyRWSWrapper) Done ¶
func (r *ReadOnlyRWSWrapper) Done()
func (*ReadOnlyRWSWrapper) Equals ¶
func (r *ReadOnlyRWSWrapper) Equals(right interface{}, namespace string) error
type RequestApprovalResponderView ¶
type RequestApprovalResponderView struct{}
type RequestApprovalView ¶
type RequestApprovalView struct { Network driver.Network Namespace string RequestRaw []byte Signer view.Identity TxID string }
func NewRequestApprovalView ¶
type RequestQueryTokensResponderView ¶
type RequestQueryTokensResponderView struct{}
type RequestQueryTokensView ¶
type RequestSpentTokensResponderView ¶
type RequestSpentTokensResponderView struct{}
type RequestSpentTokensView ¶
func NewRequestSpentTokensView ¶
func NewRequestSpentTokensView(network driver.Network, namespace string, IDs []string) *RequestSpentTokensView
type RequestTxStatusResponderView ¶
type RequestTxStatusResponderView struct{}
type RequestTxStatusView ¶
func NewRequestTxStatusView ¶
func NewRequestTxStatusView(network driver.Network, txID string) *RequestTxStatusView
type SpentTokensRequest ¶
type SpentTokensResponse ¶
type SpentTokensResponse struct {
Flags []bool
}
type TxRWSWrapper ¶
type TxRWSWrapper struct {
// contains filtered or unexported fields
}
func (*TxRWSWrapper) Bytes ¶
func (r *TxRWSWrapper) Bytes() ([]byte, error)
func (*TxRWSWrapper) DeleteState ¶
func (r *TxRWSWrapper) DeleteState(namespace string, key string) error
func (*TxRWSWrapper) Done ¶
func (r *TxRWSWrapper) Done()
func (*TxRWSWrapper) Equals ¶
func (r *TxRWSWrapper) Equals(right interface{}, namespace string) error
type TxStatusRequest ¶
type TxStatusResponse ¶
type TxStatusResponse struct {
Status driver.ValidationCode
}
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func NewVault ¶
func NewVault(ons *orion.NetworkService, tokenStore processor.TokenStore) *Vault
Click to show internal directories.
Click to hide internal directories.