GithubHelp home page GithubHelp logo

Comments (10)

0xCasey avatar 0xCasey commented on September 26, 2024 1

@aaroncox would this type of fix be beneficial to BPs despite the response data being in the FIO format?

from fio.

aaroncox avatar aaroncox commented on September 26, 2024 1

I believe so. At that point it might require some validation logic to be changed (if it exists), but will at least allow results to be returned to the client.

from fio.

0xCasey avatar 0xCasey commented on September 26, 2024

The following API endpoints could be modified to support this:

  • get_fio_balance
  • get_pending_fio_requests
  • get_sent_fio_requests
  • get_obt_data

However, the signing and the responses will still be in the FIO format.

from fio.

0xCasey avatar 0xCasey commented on September 26, 2024

PR Submitted

from fio.

ericbutz avatar ericbutz commented on September 26, 2024

Resolved by #64

from fio.

cc32d9 avatar cc32d9 commented on September 26, 2024

You can't just replace FIO prefix with PUB_K1 because they are encoding the public key differently, You can see the difference here:

https://github.com/EOSIO/eosjs/blob/master/src/eosjs-numeric.ts#L272

from fio.

cc32d9 avatar cc32d9 commented on September 26, 2024

here's a better example in c++ https://github.com/EOSIO/abieos/blob/master/src/crypto.cpp#L134

from fio.

lukestokes avatar lukestokes commented on September 26, 2024

Someone floated the idea of just adding a prefix since we still have to use this as a human-readable address people can send to. Is that doable? Something like FIO_PUB_K1_6smr7ThQMWYBHzEvkzTZdxNNmUwxqh2VXdXZdDdzYHgak1U8Di?

from fio.

aaroncox avatar aaroncox commented on September 26, 2024

It should be. Another option would be to use FIO_K1_6smr7ThQMWYBHzEvkzTZdxNNmUwxqh2VXdXZdDdzYHgak1U8Di (without the PUB portion)... though you could realistically do either way. The various SDKs would just need updated to support it.

The code @cc32d9 mentioned would need updated, eosjs/fiojs would need updated in the same way, and eosio-core would all have to be updated. It's not a comprehensive list, but those are a few areas I immediately recognize that would need updates.

from fio.

lukestokes avatar lukestokes commented on September 26, 2024

Yeah, I like FIO_KY vs. FIO_PUB_K1. I could think of it this way: "PUB_..." is a generic public key. "FIO_..." is a specific public key.

from fio.

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.