Documentation ¶
Index ¶
- type EmptyExtra
- type ExtraData
- type IssuedPromise
- type Promise
- type PromiseClearing
- func (pc *PromiseClearing) BindForEvents(eventChan chan<- *abigen.IdentityPromisesPromiseCleared) (event.Subscription, error)
- func (pc *PromiseClearing) ClearReceivedPromise(promise *ReceivedPromise) error
- func (pc *PromiseClearing) LastClearedPromise(sender common.Address, receiver common.Address) (uint64, error)
- func (pc *PromiseClearing) RegisterIdentities(identities ...registry.IdentityHolder) error
- type ReceivedPromise
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyExtra ¶
type EmptyExtra struct { }
func (EmptyExtra) Hash ¶
func (EmptyExtra) Hash() []byte
type IssuedPromise ¶
func SignByPayer ¶
func SignByPayer(promise *Promise, payer identity.Signer) (*IssuedPromise, error)
func (*IssuedPromise) Bytes ¶
func (ip *IssuedPromise) Bytes() []byte
func (*IssuedPromise) IssuerAddress ¶
func (ip *IssuedPromise) IssuerAddress() (common.Address, error)
type PromiseClearing ¶
type PromiseClearing struct { Address common.Address abigen.IdentityPromisesSession }
func DeployPromiseClearer ¶
func DeployPromiseClearer(owner *bind.TransactOpts, erc20Token common.Address, fee int64, backend bind.ContractBackend) (*PromiseClearing, error)
func NewPromiseClearer ¶
func NewPromiseClearer(transactOpts *bind.TransactOpts, contract *abigen.IdentityPromises, address common.Address) *PromiseClearing
func (*PromiseClearing) BindForEvents ¶
func (pc *PromiseClearing) BindForEvents(eventChan chan<- *abigen.IdentityPromisesPromiseCleared) (event.Subscription, error)
func (*PromiseClearing) ClearReceivedPromise ¶
func (pc *PromiseClearing) ClearReceivedPromise(promise *ReceivedPromise) error
func (*PromiseClearing) LastClearedPromise ¶
func (*PromiseClearing) RegisterIdentities ¶
func (pc *PromiseClearing) RegisterIdentities(identities ...registry.IdentityHolder) error
type ReceivedPromise ¶
type ReceivedPromise struct { IssuedPromise ReceiverSignature []byte }
func SignByReceiver ¶
func SignByReceiver(promise *IssuedPromise, receiver identity.Signer) (*ReceivedPromise, error)
Click to show internal directories.
Click to hide internal directories.