definition

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccInfo

type AccInfo struct {
	Account  string `json:"account"`
	Password string `json:"password"`
}

type BuyData

type BuyData struct {
	Password     string       `json:"password"`
	StartVerify  bool         `json:"startVerify"`
	SelectedData SelectedData `json:"pID"`
}

type ConfirmData

type ConfirmData struct {
	Password   string       `json:"password"`
	SelectedTx SelectedTxCD `json:"tID"`
	Truth      bool         `json:"confirmData"`
}

type Credit

type Credit struct {
	Verifier1Revert bool    `json:"verifier1Revert"`
	Verifier1Credit float64 `json:"verifier1Credit"`
	Verifier2Revert bool    `json:"verifier2Revert"`
	Verifier2Credit float64 `json:"verifier2Credit"`
}

type CreditData

type CreditData struct {
	Password   string        `json:"password"`
	SelectedTx SelectedTxCrD `json:"tID"`
	Credit     Credit        `json:"credit"`
}

type DecryptData

type DecryptData struct {
	Password   string       `json:"password"`
	SelectedTx SelectedTxDD `json:"tID"`
}

type IDs

type IDs struct {
	MetaDataID   string   `json:"metaDataID"`
	ProofDataIDs []string `json:"proofDataIDs"`
	DetailsID    string   `json:"detailsID"`
}

type MessageIn

type MessageIn struct {
	Name    string          `json:"Name"`
	Payload json.RawMessage `json:"Payload"`
}

type MessageOut

type MessageOut struct {
	Name    string      `json:"Name"`
	Payload interface{} `json:"Payload,omitempty"`
}

type OnApprove

type OnApprove struct {
	Block uint64
}

type OnClose

type OnClose struct {
	TransactionID string
	UserIndex     string
	TxState       string
	Block         uint64
}

type OnPublish

type OnPublish struct {
	Title               string   `json:"Title"`
	Keys                string   `json:"Keys"`
	Description         string   `json:"Description"`
	MetaDataExtension   string   `json:"MetaDataExtension"`
	ProofDataExtensions []string `json:"ProofDataExtensions"`
	Seller              string   `json:"Seller"`
	Price               string
	PublishID           string
	SupportVerify       bool
	Block               uint64
}

type OnPurchase

type OnPurchase struct {
	TransactionID           string
	PublishID               string
	MetaDataIdEncWithSeller []byte
	TxState                 string
	UserIndex               string
	Buyer                   string // temp
	Block                   uint64
}

type OnReadyForDownload

type OnReadyForDownload struct {
	TransactionID          string
	MetaDataIdEncWithBuyer []byte
	UserIndex              string
	TxState                string
	Block                  uint64
}

type OnRegisterAsVerifier

type OnRegisterAsVerifier struct {
	Block uint64
}

type OnTransactionCreate

type OnTransactionCreate struct {
	TransactionID  string
	PublishID      string
	ProofFileNames []string
	Buyer          string
	StartVerify    bool
	TxState        string
	Block          uint64
}

type OnVerifierDisable

type OnVerifierDisable struct {
	Block uint64
}

type OnVerifiersChosen

type OnVerifiersChosen struct {
	TransactionID  string
	PublishID      string
	ProofFileNames []string
	TxState        string
	Block          uint64
}

type OnVote

type OnVote struct {
	TransactionID    string
	VerifierResponse string
	VerifierIndex    string
	TxState          string
	Block            uint64
}

type Prepared

type Prepared struct {
	Extensions []string `json:"extensions"`
}

type PresetFunc

type PresetFunc = func(*MessageIn) (interface{}, error)

type PublishData

type PublishData struct {
	Price         float64 `json:"price"`
	SupportVerify bool    `json:"supportVerify"`
	Password      string  `json:"password"`
	IDs           IDs     `json:"IDs"`
}

type PurchaseData

type PurchaseData struct {
	Password   string       `json:"password"`
	SelectedTx SelectedTxPD `json:"tID"`
}

type ReEncryptData

type ReEncryptData struct {
	Password   string        `json:"password"`
	SelectedTx SelectedTxRED `json:"tID"`
}

type RegisterVerifierData

type RegisterVerifierData struct {
	Password string `json:"password"`
}

type SDKInitData

type SDKInitData struct {
	FromBlock float64 `json:"fromBlock"`
}

type SelectedData

type SelectedData struct {
	PublishID string `json:"PublishID"`
}

type SelectedTxCD

type SelectedTxCD struct {
	TransactionID string `json:"TransactionID"`
}

type SelectedTxCrD

type SelectedTxCrD struct {
	TransactionID string `json:"TransactionID"`
}

type SelectedTxDD

type SelectedTxDD struct {
	MetaDataIDEncrypt []byte `json:"MetaDataIDEncrypt"`
	MetaDataExtension string `json:"MetaDataExtension"`
	User              string `json:"User"`
}

type SelectedTxPD

type SelectedTxPD struct {
	TransactionID string `json:"TransactionID"`
}

type SelectedTxRED

type SelectedTxRED struct {
	TransactionID           string `json:"TransactionID"`
	Buyer                   string `json:"Buyer"`
	Seller                  string `json:"Seller"`
	MetaDataIDEncWithSeller []byte `json:"MetaDataIDEncWithSeller"`
}

type Verify

type Verify struct {
	Suggestion bool   `json:"suggestion"`
	Comment    string `json:"comment"`
}

type VerifyData

type VerifyData struct {
	Password      string `json:"password"`
	TransactionID string `json:"tID"`
	Verify        Verify `json:"verify"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL