Ed25519ProgramLayout class

StructLayout for the Ed25519 program.

Inheritance

Constructors

Ed25519ProgramLayout.fromBuffer(List<int> data)
Constructs the layout from raw bytes.
factory
Ed25519ProgramLayout.fromPrivateKey({required SolanaPrivateKey privateKey, required List<int> message, int? instructionIndex})
Create an ed25519 instruction with a private key.
factory
Ed25519ProgramLayout.fromPublicKey({required SolanaPublicKey publicKey, required List<int> message, required List<int> signature, int? instructionIndex})
Create an ed25519 instruction with a public key and signature. the signature must be a buffer of 64 bytes.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
instruction int
The instruction of the program.
final
layout → StructLayout
The layout representing the structure of the program.
no setteroverride
length int
no setter
message List<int>
Message.
final
messageDataOffset int
Message data offset.
final
messageDataSize int
Message data size.
final
messageInstructionIndex int
Message instruction index.
final
numSignatures int
Number of signatures.
final
padding int
Padding.
final
publicKey SolanaPublicKey
Public key.
final
publicKeyInstructionIndex int
Public key instruction index.
final
publicKeyOffset int
Public key offset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature List<int>
Signature.
final
signatureInstructionIndex int
Signature instruction index.
final
signatureOffset int
Signature offset.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serializes the program.
override
toBytes() List<int>
Converts the program to bytes using Borsh serialization.
override
toHex() String
Converts the program to a hexadecimal string.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited