Documentation ¶
Index ¶
- Constants
- Variables
- type Credential
- type Factory
- type Fx
- func (fx *Fx) Initialize(vmIntf interface{}) error
- func (fx *Fx) VerifyMintOperation(tx secp256k1fx.UnsignedTx, op *MintOperation, cred *Credential, ...) error
- func (fx *Fx) VerifyOperation(txIntf, opIntf, credIntf interface{}, utxosIntf []interface{}) error
- func (*Fx) VerifyTransfer(_, _, _, _ interface{}) error
- func (fx *Fx) VerifyTransferOperation(tx secp256k1fx.UnsignedTx, op *TransferOperation, cred *Credential, ...) error
- type MintOperation
- type MintOutput
- type TransferOperation
- type TransferOutput
Constants ¶
View Source
const ( // MaxPayloadSize is the maximum size that can be placed into a payload MaxPayloadSize = units.KiB )
Variables ¶
View Source
var ( // ID that this Fx uses when labeled ID = ids.ID{'n', 'f', 't', 'f', 'x'} )
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct {
secp256k1fx.Credential `serialize:"true"`
}
type Fx ¶
type Fx struct{ secp256k1fx.Fx }
func (*Fx) Initialize ¶
func (*Fx) VerifyMintOperation ¶
func (fx *Fx) VerifyMintOperation(tx secp256k1fx.UnsignedTx, op *MintOperation, cred *Credential, utxoIntf interface{}) error
func (*Fx) VerifyOperation ¶
func (*Fx) VerifyTransfer ¶
func (*Fx) VerifyTransferOperation ¶
func (fx *Fx) VerifyTransferOperation(tx secp256k1fx.UnsignedTx, op *TransferOperation, cred *Credential, utxoIntf interface{}) error
type MintOperation ¶
type MintOperation struct { MintInput secp256k1fx.Input `serialize:"true" json:"mintInput"` GroupID uint32 `serialize:"true" json:"groupID"` Payload types.JSONByteSlice `serialize:"true" json:"payload"` Outputs []*secp256k1fx.OutputOwners `serialize:"true" json:"outputs"` }
func (*MintOperation) Cost ¶ added in v1.5.0
func (op *MintOperation) Cost() (uint64, error)
func (*MintOperation) InitCtx ¶ added in v1.4.12
func (op *MintOperation) InitCtx(ctx *snow.Context)
func (*MintOperation) Outs ¶
func (op *MintOperation) Outs() []verify.State
Outs Returns []TransferOutput as []verify.State
func (*MintOperation) Verify ¶
func (op *MintOperation) Verify() error
type MintOutput ¶
type MintOutput struct { GroupID uint32 `serialize:"true" json:"groupID"` secp256k1fx.OutputOwners `serialize:"true"` }
func (*MintOutput) MarshalJSON ¶ added in v1.5.1
func (out *MintOutput) MarshalJSON() ([]byte, error)
MarshalJSON marshals Amt and the embedded OutputOwners struct into a JSON readable format If OutputOwners cannot be serialised then this will return error
type TransferOperation ¶
type TransferOperation struct { Input secp256k1fx.Input `serialize:"true" json:"input"` Output TransferOutput `serialize:"true" json:"output"` }
func (*TransferOperation) Cost ¶ added in v1.5.0
func (op *TransferOperation) Cost() (uint64, error)
func (*TransferOperation) InitCtx ¶ added in v1.4.12
func (op *TransferOperation) InitCtx(ctx *snow.Context)
func (*TransferOperation) Outs ¶
func (op *TransferOperation) Outs() []verify.State
func (*TransferOperation) Verify ¶
func (op *TransferOperation) Verify() error
type TransferOutput ¶
type TransferOutput struct { GroupID uint32 `serialize:"true" json:"groupID"` Payload types.JSONByteSlice `serialize:"true" json:"payload"` secp256k1fx.OutputOwners `serialize:"true"` }
func (*TransferOutput) MarshalJSON ¶ added in v1.5.1
func (out *TransferOutput) MarshalJSON() ([]byte, error)
MarshalJSON marshals Amt and the embedded OutputOwners struct into a JSON readable format If OutputOwners cannot be serialised then this will return error
func (*TransferOutput) Verify ¶
func (out *TransferOutput) Verify() error
func (*TransferOutput) VerifyState ¶ added in v0.8.0
func (out *TransferOutput) VerifyState() error
Click to show internal directories.
Click to hide internal directories.