Documentation
¶
Index ¶
- Constants
- Variables
- type Credential
- type Factory
- type Fx
- func (fx *Fx) Initialize(vmIntf interface{}) error
- func (fx *Fx) VerifyMintOperation(tx secp256k1fx.Tx, op *MintOperation, cred *Credential, utxoIntf interface{}) error
- func (fx *Fx) VerifyOperation(txIntf, opIntf, credIntf interface{}, utxosIntf []interface{}) error
- func (fx *Fx) VerifyTransfer(_, _ interface{}) error
- func (fx *Fx) VerifyTransferOperation(tx secp256k1fx.Tx, 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 = 1 << 10
)
Variables ¶
View Source
var (
ID = ids.ID{'n', 'f', 't', 'f', 'x'}
)
ID that this Fx uses when labeled
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct {
secp256k1fx.Credential `serialize:"true"`
}
Credential ...
type Fx ¶
type Fx struct{ secp256k1fx.Fx }
Fx ...
func (*Fx) VerifyMintOperation ¶
func (fx *Fx) VerifyMintOperation(tx secp256k1fx.Tx, op *MintOperation, cred *Credential, utxoIntf interface{}) error
VerifyMintOperation ...
func (*Fx) VerifyOperation ¶
VerifyOperation ...
func (*Fx) VerifyTransferOperation ¶
func (fx *Fx) VerifyTransferOperation(tx secp256k1fx.Tx, op *TransferOperation, cred *Credential, utxoIntf interface{}) error
VerifyTransferOperation ...
type MintOperation ¶
type MintOperation struct {
MintInput secp256k1fx.Input `serialize:"true" json:"mintInput"`
GroupID uint32 `serialize:"true" json:"groupID"`
Payload []byte `serialize:"true" json:"payload"`
Outputs []*secp256k1fx.OutputOwners `serialize:"true" json:"outputs"`
}
MintOperation ...
type MintOutput ¶
type MintOutput struct {
GroupID uint32 `serialize:"true" json:"groupID"`
secp256k1fx.OutputOwners `serialize:"true"`
}
MintOutput ...
type TransferOperation ¶
type TransferOperation struct {
Input secp256k1fx.Input `serialize:"true" json:"input"`
Output TransferOutput `serialize:"true" json:"output"`
}
TransferOperation ...
type TransferOutput ¶
type TransferOutput struct {
GroupID uint32 `serialize:"true" json:"groupID"`
Payload []byte `serialize:"true" json:"payload"`
secp256k1fx.OutputOwners `serialize:"true"`
}
TransferOutput ...
func (*TransferOutput) VerifyState ¶ added in v0.8.0
func (out *TransferOutput) VerifyState() error
VerifyState ...
Click to show internal directories.
Click to hide internal directories.