jr can now post a sale on aegora testnet!

This commit is contained in:
2023-08-14 22:58:40 -06:00
parent 4ce8ada26e
commit 457be05cbf
2 changed files with 62 additions and 5 deletions
+10
View File
@@ -383,6 +383,11 @@ tx_sign
secret_key : Uint8Array)
: Promise<{signedTransaction : string}>
{
// debug: show tx
let mansplained_tx : object = await vdk_aeser.mansplain(tx_str);
console.log('mansplained_tx,', mansplained_tx);
let tx_bytes : Uint8Array = (await vdk_aeser.unbaseNcheck(tx_str)).bytes;
// thank you ulf
// https://github.com/aeternity/protocol/tree/fd179822fc70241e79cbef7636625cf344a08109/consensus#transaction-signature
@@ -396,6 +401,11 @@ tx_sign
let signature : Uint8Array = nacl.sign.detached(sign_data, secret_key);
let signed_tx_bytes : Uint8Array = vdk_aeser.signed_tx([signature], tx_bytes);
let signed_tx_str : string = await vdk_aeser.baseNcheck('tx', signed_tx_bytes);
// debugging
let mansplained_stx : object = await vdk_aeser.mansplain(signed_tx_str);
console.log('mansplained signed tx:', mansplained_stx);
return {signedTransaction: signed_tx_str};
}