-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add sign message * Update packages/fcl-ethereum-provider/src/accounts/account-manager.ts Co-authored-by: Jordan Ribbink <[email protected]> * Push fix * Remove comment * Update packages/fcl-ethereum-provider/src/rpc/handlers/personal-sign.ts Co-authored-by: Jordan Ribbink <[email protected]> * Update packages/fcl-ethereum-provider/src/accounts/account-manager.ts Co-authored-by: Jordan Ribbink <[email protected]> * Update packages/fcl-ethereum-provider/src/rpc/handlers/personal-sign.ts Co-authored-by: Jordan Ribbink <[email protected]> * Check auth with coa address * Add tests * Fix params and prettier * Run prettier * Use RLP * Change path * hex array * Fix RLP test * Run prettier --------- Co-authored-by: Chase Fleming <[email protected]> Co-authored-by: Jordan Ribbink <[email protected]>
- Loading branch information
1 parent
a9659aa
commit 2fda71b
Showing
7 changed files
with
152 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
packages/fcl-ethereum-provider/src/rpc/handlers/personal-sign.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {AccountManager} from "../../accounts/account-manager" | ||
import {PersonalSignParams} from "../../types/eth" | ||
|
||
export async function personalSign( | ||
accountManager: AccountManager, | ||
params: PersonalSignParams | ||
) { | ||
const [message, from] = params | ||
|
||
return await accountManager.signMessage(message, from) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export type EthSignatureResponse = string | ||
|
||
export type PersonalSignParams = [string, string] |