-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
527d605
commit f81b635
Showing
4 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ defmodule TTEth.Secp256k1 do | |
Wrapper around `ExSecp256k1` functions. | ||
""" | ||
|
||
@behaviour TTEth.Behaviours.Signer | ||
|
||
@impl TTEth.Behaviours.Signer | ||
def sign_transaction(transaction, private_key), | ||
Check warning on line 9 in lib/tt_eth/secp256k1.ex GitHub Actions / OTP 22.x / Elixir 1.11.4
Check warning on line 9 in lib/tt_eth/secp256k1.ex GitHub Actions / OTP 22.x / Elixir 1.13.4
Check warning on line 9 in lib/tt_eth/secp256k1.ex GitHub Actions / OTP 24.x / Elixir 1.11.4
Check warning on line 9 in lib/tt_eth/secp256k1.ex GitHub Actions / OTP 24.x / Elixir 1.13.4
|
||
do: ecdsa_sign_compact(transaction, private_key) | ||
|
||
@doc """ | ||
Delegates to `ExSecp256k1.recover_compact/3` with guards around the `recovery_id` value. | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters