From 4ce8ada26e3b733085f0bbd1f08aac41a784c54f Mon Sep 17 00:00:00 2001 From: Peter Harpending Date: Mon, 14 Aug 2023 12:31:00 -0600 Subject: [PATCH] [wip] tried using tx bytes rather than tx hash, still doesn't work --- jrx/src/b_lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jrx/src/b_lib.ts b/jrx/src/b_lib.ts index 2a86090..4176159 100644 --- a/jrx/src/b_lib.ts +++ b/jrx/src/b_lib.ts @@ -390,8 +390,8 @@ tx_sign // SerializedObject can either be the object or the hash of the object // let's stick with hash for now let network_id : Uint8Array = vdk_binary.encode_utf8('ae_uat'); - let tx_hash_bytes : Uint8Array = hash(tx_bytes); - let sign_data : Uint8Array = vdk_binary.bytes_concat(network_id, tx_hash_bytes); + // let tx_hash_bytes : Uint8Array = hash(tx_bytes); + let sign_data : Uint8Array = vdk_binary.bytes_concat(network_id, tx_bytes); // @ts-ignore yes nacl is stupid let signature : Uint8Array = nacl.sign.detached(sign_data, secret_key); let signed_tx_bytes : Uint8Array = vdk_aeser.signed_tx([signature], tx_bytes);