Skip to content

feat/cardano: transaction signing flow#180

Merged
muzaffarbhat07 merged 2 commits into
feat/cardano-basefrom
feat/cardano/txn-signing
Jan 31, 2026
Merged

feat/cardano: transaction signing flow#180
muzaffarbhat07 merged 2 commits into
feat/cardano-basefrom
feat/cardano/txn-signing

Conversation

@prashantrahul141

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
@changeset-bot

changeset-bot Bot commented Jan 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6f403f6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

let signedTransaction: ISignedTransaction | undefined;

if (params.serializeTxn) {
signedTransaction = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is not the serialized transaction. Either remove this or create an actual serialized txn

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed

// eslint-disable-next-line camelcase
raw_data: any;
// eslint-disable-next-line camelcase
raw_data_hex: string;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not camelcase?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I saw that this was how it was done in one of the other apps, fixed

visible?: boolean;
txID: string;
// eslint-disable-next-line camelcase
raw_data: any;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what is the use of these?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed

assertOrThrowInvalidResult(confirmation);
forceStatusUpdate(SignTxnEvent.CONFIRM);

await helper.sendInChunks(txnBytes, 'txnData', 'dataAccepted');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will have to evaluate this. Either ask the software using sdk to send only the required part of the txn which just the txn body OR decode here only in sdk and only send the txn body to firmware

@prashantrahul141 prashantrahul141 force-pushed the feat/cardano/txn-signing branch from 95d5cba to 6d7fda4 Compare January 30, 2026 16:16

export interface IUnsignedTransaction {
visible?: boolean;
txID: string;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

txID and visible?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed

walletId: Uint8Array;
derivationPath: number[];
txn: IUnsignedTransaction;
serializeTxn?: boolean;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this also

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed

Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>
@prashantrahul141 prashantrahul141 force-pushed the feat/cardano/txn-signing branch from 6d7fda4 to 6f403f6 Compare January 30, 2026 19:31
@muzaffarbhat07 muzaffarbhat07 merged commit e79868d into feat/cardano-base Jan 31, 2026
1 check passed
@muzaffarbhat07 muzaffarbhat07 deleted the feat/cardano/txn-signing branch January 31, 2026 07:52
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

Successfully merging this pull request may close these issues.

2 participants