package
3.0.0+incompatible
Repository: https://github.com/mysteriumnetwork/payments.git
Documentation: pkg.go.dev
# Functions
BigMystToDecimal converts a BigMyst to a decimal.
BigMystToFloat takes in a big int and returns a float64 representation of the myst.
No description provided by the author
CreateExchangeMessage creates new exchange message with it's promise.
No description provided by the author
CreateInvoice creates new invoice.
CreatePromise creates and signs new payment promise.
CreateSignature signs promise using keystore.
No description provided by the author
DecimalToBigMyst is an accurate conversion between a decimal and big int.
FloatToBigMyst takes in a float converts it to a big int representation.
GenerateChannelAddress generate channel address from given identity hash.
GenerateHermesAddress generate hermes address from given hermes operator address.
GenerateProviderChannelID generated channelID for provider channels from given identity hash.
GenerateProviderChannelIDForPayAndSettle generated channelID for provider channels from given identity hash.
GetProxyCode generates bytecode of minimal proxy contract (EIP 1167).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewPromise will create new promise, signature can be empty and be created later using `Sign()` method.
NewRawPromise creates a promise from given params.
Pad pads the given byte array to given size by prefixing with zeros.
RecoverAddress recovers the address from message and signature.
ReformatSignatureVForBC takes in the signature and modifies its last byte to correspond to the format required for SC.
ReformatSignatureVForRecovery takes in the signature and modifies its last byte to normalize V to either 0 or 1.
# Constants
No description provided by the author
Myst represents a single myst ERC 777 token.
MystSize defines MYST size - precision for floating points.
No description provided by the author
No description provided by the author
# Structs
DecreaseProviderStakeRequest represents all the parameters required for decreasing provider stake.
ExchangeMessage represent a promise exchange message.
No description provided by the author
Invoice represent a payment request.
No description provided by the author
Promise is payment promise object.
No description provided by the author
SetBeneficiaryRequest represents a request for setting new beneficiary.
No description provided by the author
# Type aliases
No description provided by the author