voucher_v2

package
v0.0.126 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*VoucherSigner) Encode

func (vs *VoucherSigner) Encode() ([]byte, error)

func (*VoucherSigner) First

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

Jump to

Keyboard shortcuts

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