File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,13 @@ pub struct Ed25519SignatureOffsets {
32
32
33
33
/// Encode just the signature offsets in a single ed25519 instruction.
34
34
///
35
- /// This is a convenience function for cases when verification data is to be read from a different instruction
36
- /// or acount. The caller can optionally choose to extend the instruction buffer with the verification data to
37
- /// form a properly verifiable instruction.
35
+ /// This is a convenience function for rare cases where we wish to verify multiple messages in
36
+ /// the same instruction. The verification data can be stored in a separate instruction specified
37
+ /// by the `*_instruction_index` fields of `offsets`, or in this instruction by extending the data
38
+ /// buffer.
39
+ ///
40
+ /// Note: If the signer for these messages are the same, it is cheaper to concatenate the messages
41
+ /// and have the signer sign the single buffer and use [`new_ed25519_instruction`].
38
42
pub fn offsets_to_ed25519_instruction ( offsets : & [ Ed25519SignatureOffsets ] ) -> Instruction {
39
43
let mut instruction_data = Vec :: with_capacity (
40
44
SIGNATURE_OFFSETS_START
You can’t perform that action at this time.
0 commit comments