sign
fun Transaction.sign(privateKey: String, isGM: Boolean = true, chainId: Int = 1, useProofOfWork: Boolean = false): Pair<String, SignatureData>
签名交易
Return
Pair
Parameters
privateKey
私钥
isGM
sm2p256v1 or secp256k1
chainId
区块链ID
useProofOfWork
默认false