-
Notifications
You must be signed in to change notification settings - Fork 88
fix: wrong encoding - should be base58 instead of base64
#652
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
fix: wrong encoding - should be base58 instead of base64
#652
Conversation
MaximusHaximus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 good catch!
|
This made me realize a few things considering these LA maintenance
cc. @MaximusHaximus |
re: ... express app. If that is used ... No, it’s not used - It was the initial idea for bundling the LA code, but we disregarded it because we don’t want to maintain another microservice. |
Yes - I was thinking the same thing regarding making our publishing workflow more repeatable and consistent. We currently handle publishing these as an entirely manual process, but now that this is its own package it would be awesome to get the publishing to IPFS codified into the project scripts for this package. What do you think about adding publishing script to this package, and during build+publish to NPM, we actually compute the CID of these actions after bundling them, and generate the LitActionCidRepository in this package, and upload them to IPFS? We can then....
With tree shaking, people using the CID repository still wouldn't end up with the action source code in their app, even if it was a dependency from We could even replicate the
We can do all this without it being a breaking change for existing consumers because the lit action CID repository is an internal detail of wrapped-keys (not public). |
spacesailor24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just found out that ethers includes base58 en/decoding, so we don't have to import bs58
packages/wrapped-keys-lit-actions/src/lib/solana/signTransactionWithSolanaEncryptedKey.js
Outdated
Show resolved
Hide resolved
packages/wrapped-keys-lit-actions/src/lib/solana/signTransactionWithSolanaEncryptedKey.js
Outdated
Show resolved
Hide resolved
…onWithSolanaEncryptedKey.js Co-authored-by: Wyatt Barnes <[email protected]> Signed-off-by: Anson <[email protected]>
…onWithSolanaEncryptedKey.js Co-authored-by: Wyatt Barnes <[email protected]> Signed-off-by: Anson <[email protected]>
Good catch! Thanks!! |
…tion test to expect base58 signature response (#652)
…tion test to expect base58 signature response (#652)
Description
Fix wrong encoding - it should be
base58instead ofbase64.As per @spacesailor24 comment for the following Lit Action:
When broadcast is true, transactionSignature will be base58 encoded, but when false, signature is base64 encoded