Skip to content

Commit

Permalink
fix yard return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Feb 7, 2024
1 parent a6d86b2 commit cfb0857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minisign/private_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def ed25519_signing_key
# @param filename [String] The filename to be used in the trusted comment section
# @param message [String] The file's contents
# @param comment [String] An optional trusted comment to be included in the signature
# @return [String] the signature in the .minisig format that can be written to a file.
# @return [Minisign::Signature]
def sign(filename, message, comment = nil)
signature = ed25519_signing_key.sign(blake2b512(message))
trusted_comment = comment || "timestamp:#{Time.now.to_i}\tfile:#{filename}\thashed"
Expand Down

0 comments on commit cfb0857

Please sign in to comment.