web3.swift
web3.swift copied to clipboard
How to extract the public key and private key from GethKeyStore?
Hi, thanks for the library!
- I seem to be stumbling trying to find this function, how do you extract the public and public keys from the GethKeyStore, or can you get those from the GethAccount?
- Can you recreate a GethAccount using only the privateKey?
- about this function
public func sign(message: Data) -> SignatureData? {}
, how do i get the MessageSignatureHash that you can pass e.g. https://etherscan.io/verifySig to verify the signature?