Documentation ¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- func TransferHTLCValidate(ctx *Context) error
- func TransferSignatureValidate(ctx *Context) error
- func TransferZKProofValidate(ctx *Context) error
- type Context
- type Ledger
- type ValidateTransferFunc
- type Validator
- func (v *Validator) UnmarshalActions(raw []byte) ([]interface{}, error)
- func (v *Validator) UnmarshalIssueActions(raw [][]byte) ([]driver.IssueAction, error)
- func (v *Validator) UnmarshalIssueTransferActions(tr *driver.TokenRequest) ([]driver.IssueAction, []driver.TransferAction, error)
- func (v *Validator) UnmarshalTransferActions(raw [][]byte) ([]driver.TransferAction, error)
- func (v *Validator) VerifyTokenRequest(ledger driver.Ledger, signatureProvider driver.SignatureProvider, ...) ([]interface{}, error)
- func (v *Validator) VerifyTokenRequestFromRaw(getState driver.GetStateFnc, binding string, raw []byte) ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransferHTLCValidate ¶
func TransferZKProofValidate ¶
Types ¶
type Context ¶
type Context struct { PP *crypto.PublicParams Deserializer driver.Deserializer SignatureProvider driver.SignatureProvider Signatures [][]byte InputTokens []*token.Token Action *transfer.TransferAction Ledger driver.Ledger MetadataCounter map[string]int }
func (*Context) CountMetadataKey ¶
type ValidateTransferFunc ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func New ¶
func New(pp *crypto.PublicParams, deserializer driver.Deserializer, extraValidators ...ValidateTransferFunc) *Validator
func (*Validator) UnmarshalActions ¶
func (*Validator) UnmarshalIssueActions ¶
func (v *Validator) UnmarshalIssueActions(raw [][]byte) ([]driver.IssueAction, error)
func (*Validator) UnmarshalIssueTransferActions ¶
func (v *Validator) UnmarshalIssueTransferActions(tr *driver.TokenRequest) ([]driver.IssueAction, []driver.TransferAction, error)
UnmarshalIssueTransferActions returns the deserialized issue and transfer actions contained in TokenRequest
func (*Validator) UnmarshalTransferActions ¶
func (v *Validator) UnmarshalTransferActions(raw [][]byte) ([]driver.TransferAction, error)
func (*Validator) VerifyTokenRequest ¶
func (v *Validator) VerifyTokenRequest(ledger driver.Ledger, signatureProvider driver.SignatureProvider, binding string, tr *driver.TokenRequest) ([]interface{}, error)
func (*Validator) VerifyTokenRequestFromRaw ¶
Click to show internal directories.
Click to hide internal directories.