Hive-tx is new to me. Was this possible before with other libraries like hive-js / dhive?
I see that you manually reconstructed the transaction to get the digest. Can that step be automated?
const signature = hiveTx.Signature.from('203dfa2f2620f94a033c424710bbf22c518e1d9aec4170b342789acdc714bf0b483ff1e2ec1fcd5607e5df767ba09751792484a7ac1cf31c94cf55b1e81df6be30')
const trx = new hiveTx.Transaction({
ref_block_num: 30883,
ref_block_prefix: 3663302639,
expiration: '2023-05-26 07:49:44',
operations: [[
'vote',
{
voter: 'mahdiyari',
author: 'afa.hb03',
permlink: 'esp-engcoastal-sentry-splinterlands-art-contest-week-242-by-afahb03',
weight: 2000
}
]],
extensions: []
})
const { digest } = trx.digest()
const publicKey = signature.getPublicKey(digest).toString()
// STM8WWUYHMdHLgEHidYCztswzfZCViA16EqGkAxt7RG4dWwDpFtCF
// To find which account has this public key
const account = await hiveTx.call('condenser_api.get_key_references', [["STM8WWUYHMdHLgEHidYCztswzfZCViA16EqGkAxt7RG4dWwDpFtCF"]])
// steemauto
RE: Posting Authority Revoked.