Documentation ¶
Index ¶
- Variables
- func MakeSettlementHeaders(exchangeRate, deduction *big.Int) p2p.Headers
- func ParseDeductionHeader(receivedHeaders p2p.Headers) (*big.Int, error)
- func ParseExchangeHeader(receivedHeaders p2p.Headers) (*big.Int, error)
- func ParseSettlementResponseHeaders(receivedHeaders p2p.Headers) (exchange *big.Int, deduction *big.Int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFieldLength denotes p2p.Header having malformed field length in bytes ErrFieldLength = errors.New("field length error") // ErrNoExchangeHeader denotes p2p.Header lacking specified field ErrNoExchangeHeader = errors.New("no exchange header") // ErrNoDeductionHeader denotes p2p.Header lacking specified field ErrNoDeductionHeader = errors.New("no deduction header") )
Functions ¶
func MakeSettlementHeaders ¶
func ParseDeductionHeader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.