GithubHelp home page GithubHelp logo

Comments (10)

sc0Vu avatar sc0Vu commented on May 27, 2024
var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |
                        (kpX.cmp(r) !== 0 ? 2 : 0);

// Use complement of `s`, if it is > `n / 2`
if (options.canonical && s.cmp(this.nh) > 0) {
  s = this.n.sub(s);
  recoveryParam ^= 1;
}

from ethereum-tx.

jianhuihi avatar jianhuihi commented on May 27, 2024

sign without chainId send transaction

Error: insufficient funds for gas * price + value

$v = 37;
        $chainId = $this->offsetGet('chainId');
        if ($chainId) {
            $v = (int) $chainId * 2 + 35;
        }
        $this->offsetSet('v', $v);

chainID = 1; return the same result.

from ethereum-tx.

olegabr avatar olegabr commented on May 27, 2024

any update on this?

from ethereum-tx.

jianhuihi avatar jianhuihi commented on May 27, 2024

try this

https://github.com/Domraider/php-eth-raw-tx

from ethereum-tx.

olegabr avatar olegabr commented on May 27, 2024

It has a lot of requirements to the server. hard to use it for average user.
I want to use it for a WordPress plugin, so, user friendlyness is an important issue for me.
It is even easier to use geth with JSON-RPC in this case.
The pure PHP implementation is a must to make things really simple for such applications.

from ethereum-tx.

sc0Vu avatar sc0Vu commented on May 27, 2024

I think the pure PHP implementation is good.
I'll fix this issue when secp256k1 recover function finished (web3p/secp256k1#6).
Still working hard on that (this.g.mulAdd).

Update:
I found the full implement of elliptic: https://github.com/simplito/elliptic-php
Try this to sign and recover tonight.

from ethereum-tx.

jianhuihi avatar jianhuihi commented on May 27, 2024

any update on this?

from ethereum-tx.

jianhuihi avatar jianhuihi commented on May 27, 2024

https://github.com/jianhuihi/ethereum-tx

from ethereum-tx.

sc0Vu avatar sc0Vu commented on May 27, 2024

Just release 0.3 that support EIP155 https://github.com/web3p/ethereum-tx/releases/tag/0.3

from ethereum-tx.

olegabr avatar olegabr commented on May 27, 2024

Wow! Does it means that there is a pure PHP Ethereum tx library exists now? I'm excited! :-)
Will try it in my plugin shortly: https://wordpress.org/plugins/cryptocurrency-product-for-woocommerce/

from ethereum-tx.

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.