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

Question - signTx() documentation #95

Closed
tdedgx opened this issue Nov 14, 2021 · 3 comments
Closed

Question - signTx() documentation #95

tdedgx opened this issue Nov 14, 2021 · 3 comments

Comments

@tdedgx
Copy link

tdedgx commented Nov 14, 2021

Hi, thanks for the wallet!

Can you review the doco under cardano.signTx(tx, partialSign), it has "Transaction is a hex encoded cbor string." however under the hood it requires Hex bytes [i.e. at api/extension/index.js:745 => rawTx=Loader.Cardano.Transaction.from_bytes(Buffer.from(tx,'hex'));.

Indeed I needed to provide the latter for it to work. This is the error when providing cbor hex:
"code: -1
info: "Inputs do not conform to this spec or are otherwise invalid."
"

Thanks

@alessandrokonrad
Copy link
Contributor

Hey!
I'm not sure what you mean exactly? The function takes a hex string, not an array of bytes.

@tdedgx
Copy link
Author

tdedgx commented Nov 14, 2021

Hi, just that it isn’t cbor encoded?

@rooooooooob
Copy link

@edgeeipi yes it's hex-encoded CBOR bytes. plese refer to the CIP-0030 standard.

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

No branches or pull requests

3 participants