ValidatorSignature
type ValidatorSignature
A signature from a Validator
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type ValidatorSignature struct {
// contains filtered or unexported fields
}
func LiftFromExternalValidatorSignature
func LiftFromExternalValidatorSignature(handle uint64) *ValidatorSignature
func NewValidatorSignature
func NewValidatorSignature(epoch uint64, publicKey *Bls12381PublicKey, signature *Bls12381Signature) *ValidatorSignature
func ValidatorSignatureFromBcs
func ValidatorSignatureFromBcs(bcs []byte) (*ValidatorSignature, error)
Create this type from BCS encoded bytes.
func ValidatorSignatureFromJson
func ValidatorSignatureFromJson(json string) (*ValidatorSignature, error)
Create this type from a JSON encoded string.
func (*ValidatorSignature) DebugString
func (_self *ValidatorSignature) DebugString() string
func (*ValidatorSignature) Destroy
func (object *ValidatorSignature) Destroy()
func (*ValidatorSignature) Epoch
func (_self *ValidatorSignature) Epoch() uint64
func (*ValidatorSignature) Eq
func (_self *ValidatorSignature) Eq(other *ValidatorSignature) bool
func (*ValidatorSignature) Ne
func (_self *ValidatorSignature) Ne(other *ValidatorSignature) bool
func (*ValidatorSignature) PublicKey
func (_self *ValidatorSignature) PublicKey() *Bls12381PublicKey
func (*ValidatorSignature) Signature
func (_self *ValidatorSignature) Signature() *Bls12381Signature
func (*ValidatorSignature) ToBcs
func (_self *ValidatorSignature) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*ValidatorSignature) ToDisplayString
func (_self *ValidatorSignature) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (*ValidatorSignature) ToJson
func (_self *ValidatorSignature) ToJson() (string, error)
Convert this type to a JSON encoded string.