Hi!
i have installed the stellarguard and connect it to my private network(fork of stellar), after i active the stellar guard submit new transaction but can not authorize it, get the "tx_bad_auth" error.
i tracked and check the follow function
function hasAccountSignedTransaction(account, transaction) {//zh
const keypair = StellarSdk.Keypair.fromPublicKey(account);
return transaction.signatures.some(signature => {
return (keypair.signatureHint().toString() === signature.hint().toString() &&
keypair.verify(transaction.hash(), signature.signature()));
});
}
The function looks OK. but get the error!
Authorize Transaction
Status: Error while submitting to Network
Source: [You]GBKJ3...FGCTZ
Sequence Number: 1028558768046082
Payment
To:GD6L2...QGP7O
Amount:9 XLM
Results
{
"type": "https://stellar.org/horizon-errors/transaction_failed",
"title": "Transaction Failed",
"status": 400,
"detail": "The transaction failed when submitted to the stellar network. The `extras.result_codes` field on this response contains further details. Descriptions of each code can be found at: https://www.stellar.org/developers/learn/concepts/list-of-operations.html",
"extras": {
"envelope_xdr": "AAAAAF......................................................./0oZXbLpTAAAD6AADp3gAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA/L0bPuYSrlY7Ru7HYzjqllw1tlrHkGiWC2lfn/p9PwMAAAAAAAAAAAVdSoAAAAAAAAAAAldsulMAAABA2ttFXr9om4CdCnarjTPu9Qmq12PVYyTSbLVMRCLlXMruWRSDweyIUEOWX8QSzbTSy5GEKFRMfIjmb6HOqu2TBgg0+isAAABA3DXgZ41o01qQQgWucPpnGNNckMqr1RPbvbmygF87KcEYpHF3PbDgRzUw/HHL34RAD0TzOddUqUNlWsdqpKynAg==",
"result_codes": {
"transaction": "tx_bad_auth"
},
"result_xdr": "AAAAAAAAA+j////6AAAAAA=="
}
}
what is your opinion?
Thank you for your attention