Documentation ¶
Index ¶
- func Decode(voucher []byte) (ivoucher_v2.IVoucherVoucher, error)
- func Encode(voucher ivoucher_v2.IVoucherVoucher) ([]byte, error)
- type VoucherSigner
- func (vs *VoucherSigner) AddVoucher(v ivoucher_v2.IVoucherVoucher) *VoucherSigner
- func (vs *VoucherSigner) Encode() ([]byte, error)
- func (vs *VoucherSigner) First() (ivoucher_v2.IVoucherVoucher, error)
- func (vs *VoucherSigner) Sign() error
- func (vs *VoucherSigner) Vouchers() []ivoucher_v2.IVoucherVoucher
- func (vs *VoucherSigner) WithSigner(signer signer_pkg.Signer) *VoucherSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(voucher []byte) (ivoucher_v2.IVoucherVoucher, error)
Decode decodes a byte slice into a Voucher struct according to Ethereum ABI.
func Encode ¶
func Encode(voucher ivoucher_v2.IVoucherVoucher) ([]byte, error)
Encode encodes the Voucher into a byte slice according to Ethereum ABI.
Types ¶
type VoucherSigner ¶
type VoucherSigner struct {
// contains filtered or unexported fields
}
func NewVoucherSigner ¶
func NewVoucherSigner() *VoucherSigner
func (*VoucherSigner) AddVoucher ¶
func (vs *VoucherSigner) AddVoucher(v ivoucher_v2.IVoucherVoucher) *VoucherSigner
func (*VoucherSigner) Encode ¶
func (vs *VoucherSigner) Encode() ([]byte, error)
func (*VoucherSigner) First ¶
func (vs *VoucherSigner) First() (ivoucher_v2.IVoucherVoucher, error)
Most of the time we are working with a single voucher
func (*VoucherSigner) Sign ¶
func (vs *VoucherSigner) Sign() error
func (*VoucherSigner) Vouchers ¶
func (vs *VoucherSigner) Vouchers() []ivoucher_v2.IVoucherVoucher
func (*VoucherSigner) WithSigner ¶
func (vs *VoucherSigner) WithSigner(signer signer_pkg.Signer) *VoucherSigner
Click to show internal directories.
Click to hide internal directories.