Skip to content

Commit 1d01c2c

Browse files
authored
solana-secp256r1-program: make consts for ix generation public (#89)
1 parent 876d9c0 commit 1d01c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secp256r1-program/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ mod target_arch {
7676
];
7777

7878
// Computed half order
79-
const SECP256R1_HALF_ORDER: [u8; FIELD_SIZE] = [
79+
pub const SECP256R1_HALF_ORDER: [u8; FIELD_SIZE] = [
8080
0x7F, 0xFF, 0xFF, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
8181
0xFF, 0xDE, 0x73, 0x7D, 0x56, 0xD3, 0x8B, 0xCF, 0x42, 0x79, 0xDC, 0xE5, 0x61, 0x7E, 0x31,
8282
0x92, 0xA8,
8383
];
8484
// Field size in bytes
85-
const FIELD_SIZE: usize = 32;
85+
pub const FIELD_SIZE: usize = 32;
8686

8787
pub fn new_secp256r1_instruction(
8888
message: &[u8],

0 commit comments

Comments
 (0)