Wax Signer
Aioha may be used to sign transactions on Wax Typescript library.
note
Usage
import { createHiveChain } from '@hiveio/wax'
import { initAioha, KeyTypes, WaxAiohaSigner } from '@aioha/aioha'
const aioha = initAioha()
const chain = await createHiveChain()
const tx = await chain.createTransaction()
const provider = WaxAiohaSigner.for(aioha, 'active')
// push some operations here...
await provider.signTransaction(tx)
await chain.broadcast(tx)
Caveats
Currently most providers produce signatures using the legacy serialization method, while Wax prefers the newer method supported as of HF26 which saves 4 bytes per asset/NAI value in the transaction.
In addition, Aioha primarily uses the legacy transaction JSON format (array tuple of ["operation_name", {...body}]
) while Wax primarily uses the newer JSON format of {"type": "operation_name", value: {...body}}
.