Skip to content

Commit

Permalink
Remove default arg in FROST::SigningKey#generate
Browse files Browse the repository at this point in the history
  • Loading branch information
azuchi committed Feb 9, 2024
1 parent ef68561 commit eff1322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/frost/signing_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(scalar, group = ECDSA::Group::Secp256k1)

# Generate signing key.
# @param [ECDSA::Group] group Group of elliptic curve.
def self.generate(group = ECDSA::Group::Secp256k1)
def self.generate(group)
scalar = 1 + SecureRandom.random_number(group.order - 1)
SigningKey.new(scalar, group)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/signing_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe "#new" do
context 'valid key range' do
it do
expect{described_class.generate}.not_to raise_error
expect{described_class.generate(ECDSA::Group::Secp256k1)}.not_to raise_error
end
end
context 'invalid key range' do
Expand Down

0 comments on commit eff1322

Please sign in to comment.