-
Notifications
You must be signed in to change notification settings - Fork 2
Use prefixed hex strings in outer API input/outputs #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Also addresses ethereumjs/ethereumjs-monorepo#3656 |
|
This seems to have broken Ethers dramatically... :s I understand this is a 0.x release, so semver-compliance isn't expected yet, but a few notes I'm working around now:
I'm adding support for the first change, the change in the function name (either will be accepted by Ethers), but would love a heads up in the future. ;) The second, I think has to be passed along to the developer, since I don't want Ethers to have to process the input types, as that would require an Ethers-specific wrapper for the KZG goodness. But I'd also wonder if we could change That would help ensure that existing code continues to work, and save a bit of extra overhead when we already have binary data. :) |
|
(actually, I do have a point in Ethers I can hook into to convert into a string; but to ensure forwards/backwards compatibility can we ensure this signature will always accept at least a string; accepting |
|
Oh!! One more ask. Can the |
|
If curious on the changes I've made to support this, they are here. |
|
@ricmoo well, I guess I've discovered somebody who actually uses this code besides us. Sorry for breaking ethers 🤦 This change was driven mainly by the fact we are migrating our default kzg library to latest release of Anyway, all that to say, I'm so sorry for breaking In the version string, are you just wanting the |
|
Ha ha, no worries. :) Totally fair, and I found a point within Ethers where I have the opportunity to coerce the strings to/from Uint8Array, so that is no longer an issue. The Transaction object, wraps the functions if they are the new-age string-base signatures. Do you have a link to that other library? The non-WASM one? I'd love to make sure Ethers accepts that one as well, and then I will use that in the docs on how to use Ethers to send blobs. :) Yeah, I was just thinking the version string would be "v0.5.0", but it should only be necessary if there are further API changes, which is sounds like there won't be. Thanks! For your time and explanation. Oh, ant the library itself. :) |
|
Here's the link to the other library. The KZG docs are towards the bottom. https://github.com/paulmillr/micro-eth-signer |
|
Okay, sounds good. For now, I'm just going to leave as is so as to not rock any more boats. We aren't using this library internally anymore so will likely deprecate it at some point since it's not remarkably difference performance-wise from the JS implementation (i.e. it's faster on generating and verifying proofs but slower at generating commitments). |
|
S/O for supporting this @acolytec3 & Co. We use it, but I wasn't aware of micro-eth-signer, and will probably switch if the speed increase is really that notable. |
Addresses #16