Skip to content

Commit 876d9c0

Browse files
authored
solana-ed25519-program: make offset fields public (#88)
1 parent 6589b7e commit 876d9c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: ed25519-program/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ pub const DATA_START: usize = SIGNATURE_OFFSETS_SERIALIZED_SIZE + SIGNATURE_OFFS
2121
#[derive(Default, Debug, Copy, Clone, Zeroable, Pod, Eq, PartialEq)]
2222
#[repr(C)]
2323
pub struct Ed25519SignatureOffsets {
24-
signature_offset: u16, // offset to ed25519 signature of 64 bytes
25-
signature_instruction_index: u16, // instruction index to find signature
26-
public_key_offset: u16, // offset to public key of 32 bytes
27-
public_key_instruction_index: u16, // instruction index to find public key
28-
message_data_offset: u16, // offset to start of message data
29-
message_data_size: u16, // size of message data
30-
message_instruction_index: u16, // index of instruction data to get message data
24+
pub signature_offset: u16, // offset to ed25519 signature of 64 bytes
25+
pub signature_instruction_index: u16, // instruction index to find signature
26+
pub public_key_offset: u16, // offset to public key of 32 bytes
27+
pub public_key_instruction_index: u16, // instruction index to find public key
28+
pub message_data_offset: u16, // offset to start of message data
29+
pub message_data_size: u16, // size of message data
30+
pub message_instruction_index: u16, // index of instruction data to get message data
3131
}
3232

3333
/// Encode just the signature offsets in a single ed25519 instruction.

0 commit comments

Comments
 (0)