web3.swift icon indicating copy to clipboard operation
web3.swift copied to clipboard

How to extract the public key and private key from GethKeyStore?

Open robegamesios opened this issue 6 years ago • 0 comments

Hi, thanks for the library!

  1. 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?
  2. Can you recreate a GethAccount using only the privateKey?
  3. 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?

robegamesios avatar Oct 03 '18 18:10 robegamesios