You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/web3swift/Web3/Web3+Personal.swift
+33-62Lines changed: 33 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -9,77 +9,48 @@ import Web3Core
9
9
10
10
extensionWeb3.Personal{
11
11
12
-
/**
13
-
*Locally or remotely sign a message (arbitrary data) with the private key. To avoid potential signing of a transaction the message is first prepended by a special header and then hashed.*
14
-
15
-
- parameters:
16
-
- message: Message Data
17
-
- from: Use a private key that corresponds to this account
18
-
- password: Password for account if signing locally
19
-
20
-
- returns:
21
-
- Result object
22
-
23
-
- important: This call is synchronous
24
-
25
-
*/
12
+
/// Locally or remotely sign a message (arbitrary data) with the private key.
13
+
/// To avoid potential signing of a transaction the message is first prepended by a special header and then hashed.
14
+
/// - Parameters:
15
+
/// - message: raw message as bytes (e.g. UTF-8 bytes of a string);
16
+
/// - from: an account whose private key will be used;
*Recovers a signer of some message. Message is first prepended by special prefix (check the "signPersonalMessage" method description) and then hashed.*
0 commit comments