Documentation ¶
Index ¶
- func DummyHiddenTXCommitments(numTXs int) []kyber.Point
- func DummyHiddenTXWithCounterPartyID(counterPartyID organization.TypeID, numTXs int) ([]*transaction.LocalHidden, []kyber.Point, []kyber.Scalar)
- func DummyOnChainTransaction() (*transaction.LocalOnChain, error)
- func DummyOnChainTransactions(numTXs int) []*transaction.LocalOnChain
- func DummyPlainTransaction() (*transaction.LocalPlain, error)
- func DummyPlainTransactions(numTXs int) []*transaction.LocalPlain
- func ReadAllTXsByPage() error
- func ReadTX() error
- func SaveTXIDs(txIDs []string) error
- func SubmitTX(numTXs int) ([]string, error)
- type Controller
- func (c *Controller) Close()
- func (c *Controller) ReadAllTXs() ([]*transaction.LocalOnChain, error)
- func (c *Controller) ReadAllTXsByPage(bookmark string) ([]*transaction.LocalOnChain, string, error)
- func (c *Controller) ReadTX(id string) (*transaction.LocalOnChain, error)
- func (c *Controller) SubmitBatchTXs(txList []*transaction.LocalOnChain) ([]string, error)
- func (c *Controller) SubmitTX(tx *transaction.LocalOnChain) (string, error)
- func (c *Controller) TXExists(txID string) (bool, error)
- type PageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyHiddenTXCommitments ¶
func DummyHiddenTXCommitments(numTXs int) []kyber.Point
func DummyHiddenTXWithCounterPartyID ¶
func DummyHiddenTXWithCounterPartyID(counterPartyID organization.TypeID, numTXs int) ([]*transaction.LocalHidden, []kyber.Point, []kyber.Scalar)
func DummyOnChainTransaction ¶
func DummyOnChainTransaction() (*transaction.LocalOnChain, error)
func DummyOnChainTransactions ¶
func DummyOnChainTransactions(numTXs int) []*transaction.LocalOnChain
func DummyPlainTransaction ¶
func DummyPlainTransaction() (*transaction.LocalPlain, error)
func DummyPlainTransactions ¶
func DummyPlainTransactions(numTXs int) []*transaction.LocalPlain
func ReadAllTXsByPage ¶
func ReadAllTXsByPage() error
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(walletPath, walletLabel, ccpPath string) (*Controller, error)
NewController starts a new service instance
func (*Controller) Close ¶
func (c *Controller) Close()
func (*Controller) ReadAllTXs ¶
func (c *Controller) ReadAllTXs() ([]*transaction.LocalOnChain, error)
func (*Controller) ReadAllTXsByPage ¶
func (c *Controller) ReadAllTXsByPage(bookmark string) ([]*transaction.LocalOnChain, string, error)
func (*Controller) ReadTX ¶
func (c *Controller) ReadTX(id string) (*transaction.LocalOnChain, error)
func (*Controller) SubmitBatchTXs ¶
func (c *Controller) SubmitBatchTXs(txList []*transaction.LocalOnChain) ([]string, error)
func (*Controller) SubmitTX ¶
func (c *Controller) SubmitTX(tx *transaction.LocalOnChain) (string, error)
type PageResponse ¶
type PageResponse struct { Bookmark string `json:"bookmark"` TXs []*transaction.LocalOnChain `json:"txs"` }
Click to show internal directories.
Click to hide internal directories.