Skip to content
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

cleanup: drop setCert / setTransportSecurity API #59

Open
wants to merge 1 commit into
base: exodus
Choose a base branch
from

Conversation

ChALkeR
Copy link

@ChALkeR ChALkeR commented Dec 15, 2021

This removes setTransportSecurity API from the clients.
That allows to drop the embedded certs and minimize the bundle.

That is not called automatically internally, and we don't use it and don't need for the web/rn clients.

@ChALkeR ChALkeR requested a review from feri42 December 15, 2021 20:42
@ChALkeR ChALkeR changed the title cleanup: drop certs cleanup: drop setCert / setTransportSecurity API Dec 15, 2021
Copy link

@feri42 feri42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK - tests pass in hedera-api/lib including sending a trasnaction.

Copy link

@feri42 feri42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nACK - verified that this breaks server-side:

"Error: (BUG) keyToProtobuf: unsupported key type: PublicKey\n    at keyToProtobuf (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/cryptography/protobuf.cjs:49:9)\n    at AccountCreateTransaction._makeTransactionData (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/account/AccountCreateTransaction.cjs:175:60)\n    at AccountCreateTransaction._makeTransactionBody (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/transaction/Transaction.cjs:632:46)\n    at AccountCreateTransaction._makeSignedTransaction (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/transaction/Transaction.cjs:618:23)\n    at /home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/transaction/Transaction.cjs:410:65\n    at Array.map (<anonymous>)\n    at AccountCreateTransaction.freezeWith (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/transaction/Transaction.cjs:410:46)\n    at AccountCreateTransaction.freeze (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/node_modules/@exodus/hashgraph-sdk/lib/transaction/Transaction.cjs:374:17)\n    at buildTx (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/packages/hedera-account-faucet/lib/node_modules/@exodus/hedera-lib/src/prepare-tx.js:27:20)\n    at HederaAccountFaucet.createAccount (/home/feri/Work/Exodus/Hedera/hedera-account-faucet/packages/hedera-account-faucet/lib/hedera-faucet.js:199:41)","error":{}}}

The error doesn't seem to be cert related though. Not sure if I did something else wrong. But I did verify that I only had one instance of @exodus/hashgraph-sdk and that it was the modified instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants