Skip to content

Commit

Permalink
chore: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyfrederick committed Dec 9, 2024
1 parent 200e177 commit 5a8e9bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/proof-of-sql-sdk-local/src/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ pub fn sign_eth_message(private_key: &[u8], message: &[u8]) -> Result<EthereumSi

let digest = hash_eth_msg(message);

// Gross coercion of types below
let (signature, recovery_id) = signing_key.sign_digest_recoverable(digest).unwrap();

let r = slice_to_scalar(&signature.r().to_bytes()).unwrap();
let s = slice_to_scalar(&signature.s().to_bytes()).unwrap();
let r = slice_to_scalar(&signature.r().to_bytes()).expect("r should work from sign_digest_recoverable");
let s = slice_to_scalar(&signature.s().to_bytes()).expect("s should work from sign_digest_recoverable");

Ok(EthereumSignature::new(r, s, Some(recovery_id.into())))
}
Expand Down
1 change: 1 addition & 0 deletions crates/proof-of-sql-sdk-local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pub mod prover {
tonic::include_proto!("sxt.core");
}

/// types for verifying attestations
pub mod attestation;

0 comments on commit 5a8e9bc

Please sign in to comment.