From eaf84b169df6dacfec90fd872bb2b9951dfdccd3 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Tue, 18 Feb 2025 18:34:45 -0300 Subject: [PATCH] Update chain-signatures.md --- .../chain-signatures/chain-signatures.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/2.build/1.chain-abstraction/chain-signatures/chain-signatures.md b/docs/2.build/1.chain-abstraction/chain-signatures/chain-signatures.md index 404af4192e..9f74685dde 100644 --- a/docs/2.build/1.chain-abstraction/chain-signatures/chain-signatures.md +++ b/docs/2.build/1.chain-abstraction/chain-signatures/chain-signatures.md @@ -66,13 +66,13 @@ We provide code to derive the address, as it's a complex process that involves m + url="https://github.com/near-examples/near-multichain/blob/aafcfe27f89d000e5abf94580dd4a7aaecb09fa7/src/services/ethereum.js" start="18" end="21" /> + url="https://github.com/near-examples/near-multichain/blob/aafcfe27f89d000e5abf94580dd4a7aaecb09fa7/src/services/bitcoin.js" start="17" end="25" /> @@ -108,7 +108,7 @@ Constructing the transaction to be signed (transaction, message, data, etc.) var In Ethereum, constructing the transaction is simple since you only need to specify the address of the receiver and how much you want to send. @@ -117,7 +117,7 @@ In Ethereum, constructing the transaction is simple since you only need to speci In bitcoin, you construct a new transaction by using all the Unspent Transaction Outputs (UTXOs) of the account as input, and then specify the output address and amount you want to send. @@ -144,14 +144,14 @@ The method requires two parameters: For bitcoin, all UTXOs are signed independently and then combined into a single transaction. @@ -188,16 +188,16 @@ This allows the contract to generalize the signing process for multiple blockcha In Ethereum, the signature is formatted by concatenating the `r`, `s`, and `v` values returned by the contract. - + In Bitcoin, the signature is formatted by concatenating the `r` and `s` values returned by the contract. @@ -215,14 +215,14 @@ Once we have reconstructed the signature, we can relay it to the corresponding n - +