Skip to content

Commit

Permalink
Fix order of parameter (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlu authored Dec 14, 2023
2 parents 1f5e4be + f97e4ca commit e6170d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requester/signing_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Secp256k1SigningKey struct {
}

func (s *Secp256k1SigningKey) Sign(payload []byte) ([]byte, error) {
return lightspark_crypto.SignEcdsa(s.PrivateKey, payload)
return lightspark_crypto.SignEcdsa(payload, s.PrivateKey)
}

type RsaSigningKey struct {
Expand Down

0 comments on commit e6170d2

Please sign in to comment.