Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Jaimeloeuf/IdentityProxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IdentityProxy

The goal of this project is to have example of Identity proxy.

Current implementation of the Proxy has constructor, nonce and execute method.

Constructor is used to set the signer to owner. No gas needed for the signer.

Nonce is used anti replay attacks

Execute requires target address, value to be sent along the transaction the data to be sent and hash signature of the proof of sending

	/**
	 * @dev executes a transaction only if it is formatted and signed by the owner of this. Anyone can call execute. Nonce introduced as anti replay attack mechanism.
	 * 
	 * @param relayerReward - the value to be sent back to the relayer
	 * @param target - the contract to be called
	 * @param value - the value to be sent to the target
	 * @param data - the data to be sent to be target
	 * @param dataHashSignature - signed bytes of the keccak256 of target, nonce, value and data keccak256(target, nonce, value, data)
	 */
	function execute(uint256 relayerReward, address target, uint256 value, bytes data, bytes dataHashSignature) public payable onlySigner(relayerReward, target, value, data, dataHashSignature) returns (bool) { ... }

We should probably add keys and reward back mechanism

About

[😣 Abandoned... for now] Playground for identity proxies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.5%
  • HTML 24.0%
  • Solidity 14.5%