Skip to content

Commit

Permalink
don't ignore doc examples in secp256k1-recover (#3229)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Oct 20, 2024
1 parent d524f29 commit 9add6ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions curves/secp256k1-recover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ libsecp256k1 = { workspace = true }
[dev-dependencies]
anyhow = { workspace = true }
borsh = { workspace = true }
solana-program = { path = "../../sdk/program" }

[target.'cfg(not(target_os = "solana"))'.dev-dependencies]
libsecp256k1 = { workspace = true, features = ["hmac"] }
Expand Down
6 changes: 3 additions & 3 deletions curves/secp256k1-recover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ solana_define_syscall::define_syscall!(fn sol_secp256k1_recover(hash: *const u8,
/// signatures with high-order `S` values. The following code will accomplish
/// this:
///
/// ```rust,ignore
/// ```rust
/// # use solana_program::program_error::ProgramError;
/// # let signature_bytes = [
/// # 0x83, 0x55, 0x81, 0xDF, 0xB1, 0x02, 0xA7, 0xD2,
Expand Down Expand Up @@ -261,7 +261,7 @@ solana_define_syscall::define_syscall!(fn sol_secp256k1_recover(hash: *const u8,
/// The Solana program. Note that it uses `libsecp256k1` version 0.7.0 to parse
/// the secp256k1 signature to prevent malleability.
///
/// ```rust,ignore
/// ```rust,no_run
/// use solana_program::{
/// entrypoint::ProgramResult,
/// keccak, msg,
Expand Down Expand Up @@ -331,7 +331,7 @@ solana_define_syscall::define_syscall!(fn sol_secp256k1_recover(hash: *const u8,
///
/// The RPC client program:
///
/// ```rust,ignore
/// ```rust,no_run
/// # use solana_program::example_mocks::solana_rpc_client;
/// # use solana_program::example_mocks::solana_sdk;
/// use anyhow::Result;
Expand Down

0 comments on commit 9add6ce

Please sign in to comment.