Skip to content

Commit

Permalink
SFT-3538: Ignore firmware files.
Browse files Browse the repository at this point in the history
* .gitignore (*.bin): New rule.
  • Loading branch information
jeandudey committed May 9, 2024
1 parent 3c1fad2 commit ad0230b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ target/

# CMake
**/cmake-build-debug

# Firmware files.
*.bin
4 changes: 2 additions & 2 deletions firmware/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ pub fn verify_signature<C: Verification>(
secp: &Secp256k1<C>,
header: &Header,
firmware_hash: &sha256d::Hash,
user_public_key: Option<PublicKey>,
user_public_key: Option<&PublicKey>,
) -> Result<(), VerifySignatureError> {
assert!(header.verify().is_ok());

Expand All @@ -424,7 +424,7 @@ pub fn verify_signature<C: Verification>(
public_key
.verify(secp, &message, &header.signature.signature1)
.map_err(|error| VerifySignatureError::InvalidUserSignature {
public_key,
public_key: public_key.clone(),
signature: header.signature.signature1.clone(),
error,
})
Expand Down

0 comments on commit ad0230b

Please sign in to comment.