This file contains hidden or 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
// Ethereum's transaction object | |
var params = [AnyHashable : Any]() | |
params["to"] = "0x0000000000" | |
params["data"] = nil | |
params["nonce"] = BigUInt.init(0) | |
// In wei | |
params["gasPrice"] = BigUInt.init(0) | |
params["gasLimit"] = BigUInt.init(0) | |
params["value"] = BigUint.init(0) |
This file contains hidden or 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
// The data parameter is not used in the Ethereum plugin | |
let privateKey = "plain_text_private_key" | |
let address = "0x000000000" | |
let importedWallet = try? PocketEth.importWallet(privateKey: privateKey, address: address, data: nil) |
This file contains hidden or 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
// The data parameter is not used in the Ethereum plugin | |
let wallet = try? PocketEth.createWallet(data: nil) |
This file contains hidden or 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
import hashlib | |
hash_object = hashlib.sha256(b'Hello World') | |
hex_dig = hash_object.hexdigest() | |
print(hex_dig) |
This file contains hidden or 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
Verifying that +luisdeleon is my openname (Bitcoin username). https://onename.io/luisdeleon |
NewerOlder