Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmarks ¶
type Bitmarks struct {
Log *logger.L
Limiter *rate.Limiter
IsNormalMode func(mode.Mode) bool
Rsvr reservoir.Reservoir
PoolAssets storage.Handle
PoolBlockOwnerPayment storage.Handle
ReadOnly bool
}
Bitmarks - type for the RPC
func (*Bitmarks) Create ¶
func (bitmarks *Bitmarks) Create(arguments *CreateArguments, reply *CreateReply) error
Create - create assets and issues
func (*Bitmarks) Proof ¶
func (bitmarks *Bitmarks) Proof(arguments *ProofArguments, reply *ProofReply) error
Proof - supply proof that client-side hashing to confirm free issue was done
type CreateArguments ¶
type CreateArguments struct {
Assets []*transactionrecord.AssetData `json:"assets"`
Issues []*transactionrecord.BitmarkIssue `json:"issues"`
}
CreateArguments - arguments for creating a bitmark
type CreateReply ¶
type CreateReply struct {
Assets []assets.Status `json:"assets"`
Issues []IssueStatus `json:"issues"`
PayId pay.PayId `json:"payId"`
PayNonce reservoir.PayNonce `json:"payNonce"`
Difficulty string `json:"difficulty,omitempty"`
Payments map[string]transactionrecord.PaymentAlternative `json:"payments,omitempty"`
}
CreateReply - results from create RPC
type IssueStatus ¶
IssueStatus - results from an issue
type ProofArguments ¶
ProofArguments - arguments for RPC
type ProofReply ¶
type ProofReply struct {
Status reservoir.TrackingStatus `json:"status"`
}
ProofReply - results from a proof RPC
Click to show internal directories.
Click to hide internal directories.