Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RSZ for Ethereum ? #3

Open
Hurd8x opened this issue Dec 21, 2021 · 9 comments
Open

RSZ for Ethereum ? #3

Hurd8x opened this issue Dec 21, 2021 · 9 comments

Comments

@Hurd8x
Copy link

Hurd8x commented Dec 21, 2021

Hi, can you make same code for get r,s,z,pubkey for ETH transactions ?

Thank you

@iceland2k14
Copy link
Owner

Ok. Will Try.

@Hurd8x
Copy link
Author

Hurd8x commented Dec 25, 2021

Try please, Bro, bacause nonce of ETH is more simple then Btc !!! If you make a code I will provide you link to research of ETH nonce in pdf.

Regard !

@timekswaste
Copy link

@Hurd8x you name COBRAS send you mail

@Hurd8x
Copy link
Author

Hurd8x commented Jan 4, 2022

@Hurd8x you name COBRAS send you mail

Hi
What you need ?

@timekswaste
Copy link

@Hurd8x you name COBRAS send you mail

Hi What you need ?

your email

@Hurd8x
Copy link
Author

Hurd8x commented Jan 4, 2022

@Hurd8x you name COBRAS send you mail

Hi What you need ?

your email

michjord@protonmail.com

@nahiitiii
Copy link

Bro, please make for ethereum, if you can write a script to export eth all past transaction RSV by given only address. It will be off the chain. I tried to write one but sadly I failed

@Jaloliddin-jp
Copy link

Jaloliddin-jp commented Feb 11, 2022

I make code which extract all data but i can't extract z value. Can anybody help to me ? This code to ethereum . Telegram : patxiddinovjaloliddin

@GeoTuxMan
Copy link

Yes, with this code you can get r, s, v and z:
`
const ethers = require('ethers');

      // URL of Infura node
      const provider = new ethers.JsonRpcProvider("https://mainnet.infura.io/v3/...");

// Hash of transaction
const transactionHash = '0x....';

  async function getTransactionInfo() {
  // Extract info
  const tx = await provider.getTransaction(transactionHash);

const chainId = 1;  // Mainnet Ethereum
const yParity = tx.signature.yParity;
const v = yParity + (2 * chainId) + 35;

console.log(`Signature:`);
console.log(`r: ${tx.signature.r}`);
console.log(`s: ${tx.signature.s}`);
console.log(`v (calculated): ${v}`);

// Serialization
const transaction = {
nonce: tx.nonce,
gasPrice: tx.gasPrice,
gasLimit: tx.gasLimit,
to: tx.to,
value: tx.value,
data: tx.data,
chainId: tx.chainId,
};

// Serialization
const unsignedSerializedTransaction = ethers.Transaction.from(transaction).unsignedSerialized;

// Calc hash keccak256 (z)
const z = ethers.keccak256(unsignedSerializedTransaction);
console.log('z:', z);
}


getTransactionInfo();`

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants