Giter VIP home page Giter VIP logo

Comments (2)

NgVQuang avatar NgVQuang commented on August 17, 2024

0xFfAE7915C888DE11f5A76FB4dcCF9d065734C7d8

from profanity.

SmartLayer avatar SmartLayer commented on August 17, 2024

The following patch allows you to get contract addresses with nonce=1 instead of 0:

diff --git a/profanity.cl b/profanity.cl
index 41a3fcf..41c8c67 100644
--- a/profanity.cl
+++ b/profanity.cl
@@ -690,7 +690,7 @@ __kernel void profanity_transform_contract(__global mp_number * const pInverse)
        for (int i = 0; i < 20; i++) {
                h.b[i + 2] = hash[i];
        }
-       h.b[22] = 128;
+       h.b[22] = 1;
 
        h.b[23] ^= 0x01; // length 23
        sha3_keccakf(&h);

You need to delete the cache-.* file after applying the patch for it to be regenerated with the patched code. You can start from the binaries in release section. If you need nonce=𝑛, replace 1 with 𝑛.

To make it a parameter, such as

./profanity.x64 --contract-nonce 1

You will need to work quite a bit in the source code since you will need to pass more data to the kernel. A patch is welcome (at least by me, not sure if author will accept).

from profanity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.