From 5c7c6498bb054aeefecfa16a3f2cf91151bc3acc Mon Sep 17 00:00:00 2001 From: Guille Date: Sat, 13 Jul 2024 10:09:14 +0200 Subject: [PATCH] fix: snippets (#2138) --- .../1.chain-abstraction/chain-signatures.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/2.build/1.chain-abstraction/chain-signatures.md b/docs/2.build/1.chain-abstraction/chain-signatures.md index f4b3e08ea06..579e5c16eb3 100644 --- a/docs/2.build/1.chain-abstraction/chain-signatures.md +++ b/docs/2.build/1.chain-abstraction/chain-signatures.md @@ -64,13 +64,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/main/src/services/ethereum.js" start="16" end="20" /> + url="https://github.com/near-examples/near-multichain/blob/main/src/services/bitcoin.js" start="12" end="16" /> @@ -104,7 +104,7 @@ Constructing the transaction to be signed (transaction, message, data, etc.) var + start="46" end="69" /> 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. @@ -113,7 +113,7 @@ In Ethereum, constructing the transaction is simple since you only need to speci + start="26" end="80" /> 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. @@ -136,14 +136,14 @@ The method requires two parameters: + start="72" end="74" /> + start="82" end="101" /> For bitcoin, all UTXOs are signed independently and then combined into a single transaction. @@ -182,7 +182,7 @@ This allows the contract to generalize the signing process for multiple blockcha + start="76" end="90" /> In Ethereum, the signature is reconstructed by concatenating the `r`, `s`, and `v` values returned by the contract. @@ -193,7 +193,7 @@ The `v` parameter is a parity bit that depends on the `sender` address. We recon + start="103" end="114" /> In Bitcoin, the signature is reconstructed by concatenating the `r` and `s` values returned by the contract. @@ -211,14 +211,14 @@ Once we have reconstructed the signature, we can relay it to the corresponding n + start="94" end="98" /> + start="117" end="125" />