Ed25519Program class

Ed25519 Program

Ed25519 Program

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
pubkey → Pubkey
The public key that identifies this program (i.e. program id).
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDeployed(Connection connection) → Future<void>
Check that the program has been deployed to the cluster and is an executable program.
inherited
createTransactionIntruction(Enum instruction, {required List<AccountMeta> keys, List<Iterable<int>> data = const []}) → TransactionInstruction
Creates a TransactionInstruction for the program instruction.
inherited
encodeInstruction<T extends Enum>(T instruction) → Iterable<int>
Encodes the program instruction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

programId → Pubkey
The program id.
no setter

Static Methods

createInstructionWithPrivateKey({required Uint8List privateKey, required Uint8List message, required int? instructionIndex}) → TransactionInstruction
/ Create an ed25519 instruction with a private key. The private key must be a buffer that is 64 bytes long.
createInstructionWithPubkey({required Uint8List pubkey, required Uint8List message, required Uint8List signature, required int? instructionIndex}) → TransactionInstruction
Creates an ed25519 instruction with a public key and signature. The public key must be a buffer that is 32 bytes long, and the signature must be a buffer of 64 bytes.