Skip to content

pumpedlunch/CS-ECDSA-Exchange

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECDSA-Exchange

Chainshot Ethereum Develope Bootcamp Week 1 Project: ECDSA Exchange
original repo: https://github.com/ChainShot/ECDSA-Exchange/blob/master/server/index.js

Notes on Challenge 1:
-I used secp library (https://github.com/paulmillr/noble-secp256k1) to create public & private keys. I originally formatted public keys to match ethereum, but removed this formatting in challenge 2 as the truncated public key did not work with my way of verifying the tx

Notes on Challenge 2:
-I adjusted the client to provide a Tx hash
-User then signs the Tx hash locally by pasting the Tx hash and their private key into /pseudo-wallet/index.js and running the script locally to console log a signature
-The signature is then pasted into the client. The server verifies the signature is from the sender and matches the current tx info and if so completes the tx

Other:
-client throws alerts for invalid Tx requests and insufficient funds

Issues with solution:
-Txs could be replayed as there is no nonce counter included in the hash

About

A Simple Exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.0%
  • SCSS 14.0%
  • HTML 13.0%