hello all, I am trying to sign Ethereum transactions locally using the swiftweb3 library, not able to find any sign transaction function using the private key. does anyone know how to sign transactions locally with private key.
it may be similar to how it is done with web3 library in javascript and a private key
yes, we want similar function like web3.signtransaction(data,privatekey), but in web3swift its linke sign(data,pasword). we want to sign transaction with private key
maybe this helps you:
https://github.com/skywinder/web3swift/blob/5484e81580219ea491d48e94f6aef6f18d8ec58f/Sources/web3swift/KeystoreManager/KeystoreManager.swift
it looks like that KeystoreManager has to be used
thanks for the response,i have checked that, i am getting privatekey from database, i will be able to use ony privatekey for signing transactions
1 Like