Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network interface {
AddFinalityListener(namespace string, txID string, listener network.FinalityListener) error
NewEnvelope() *network.Envelope
AnonymousIdentity() (view.Identity, error)
LocalMembership() *network.LocalMembership
ComputeTxID(n *network.TxID) string
}
Network defines the subset of function of the network service needed by the ttx service.
type NetworkIdentityProvider ¶
type NetworkIdentityProvider interface {
DefaultIdentity() view.Identity
GetSigner(identity view.Identity) (NetworkIdentitySigner, error)
}
NetworkIdentityProvider defines the subset of function of the network identity provider needed by the ttx service.
func GetNetworkIdentityProvider ¶
func GetNetworkIdentityProvider(sp token.ServiceProvider) (NetworkIdentityProvider, error)
GetNetworkIdentityProvider retrieves the NetworkIdentityProvider from the given ServiceProvider.
type NetworkIdentitySigner ¶
NetworkIdentitySigner is an alias for the FSC's Signer interface
type NetworkProvider ¶
type NetworkProvider interface {
// GetNetwork returns the Network instance for the given network and channel identifiers.
GetNetwork(network string, channel string) (Network, error)
}
NetworkProvider given access to instances of the Network interface.
func GetNetworkProvider ¶
func GetNetworkProvider(sp token.ServiceProvider) (NetworkProvider, error)
GetNetworkProvider retrieves the NetworkProvider from the given ServiceProvider.
type SignatureService ¶
type SignatureService interface {
// IsMe checks if the given party is a local party meaning that a signer is bound to that identity.
IsMe(ctx context.Context, party token.Identity) bool
}
SignatureService defines the subset of function of the signature service needed by the ttx service.
type TokenManagementService ¶
type TokenManagementService interface {
ID() token.TMSID
Network() string
Channel() string
NewRequest(anchor token.RequestAnchor) (*token.Request, error)
SelectorManager() (token.SelectorManager, error)
PublicParametersManager() *token.PublicParametersManager
SigService() *token.SignatureService
WalletManager() *token.WalletManager
NewFullRequestFromBytes(raw []byte) (*token.Request, error)
Vault() *token.Vault
}
TokenManagementService defines the interface of a token management service needed by ttx service.
type TokenManagementServiceProvider ¶
type TokenManagementServiceProvider interface {
// TokenManagementService returns the TokenManagementServiceWithExtensions instance for the given options.
TokenManagementService(opts ...token.ServiceOption) (TokenManagementServiceWithExtensions, error)
}
TokenManagementServiceProvider provides instances of TokenManagementServiceWithExtensions.
type TokenManagementServiceWithExtensions ¶
type TokenManagementServiceWithExtensions interface {
TokenManagementService
SetTokenManagementService(req *token.Request) error
}
TokenManagementServiceWithExtensions extends TokenManagementService with additional functions needed by ttx service.
func GetManagementService ¶
func GetManagementService(sp token.ServiceProvider, opts ...token.ServiceOption) (TokenManagementServiceWithExtensions, error)
GetManagementService retrieves the TokenManagementServiceWithExtensions from the given ServiceProvider.