Skip to content

chore(cardano): enable tagged sets in tx serialization#9

Closed
slowbackspace wants to merge 1 commit intodevelopfrom
chore/cardano-tagged-cbor-sets
Closed

chore(cardano): enable tagged sets in tx serialization#9
slowbackspace wants to merge 1 commit intodevelopfrom
chore/cardano-tagged-cbor-sets

Conversation

@slowbackspace
Copy link
Member

@slowbackspace slowbackspace commented Dec 9, 2024

Description

This is the first of two PRs preparing Suite for the upcoming Cardano hard fork. Key updates include:

  1. Transaction Serialization
    Post hard fork, all transactions must be serialized using tagged CBOR sets. This feature is already supported by Trezor/Connect (via tagCborSets param in trezorConnect.cardanoSignTransaction) and is now also available in @fivebinaries/coinselection.

  2. Staking Rewards Withdrawal
    Users withdrawing staking rewards will need to make a governance decision by selecting one of three options:

    • A vote of no confidence
    • Abstaining
    • Delegating to a DRep

Changes in This PR

  • Upgraded coinselection lib with support for tagged cbor sets and voting certificate
  • Utility functions for transforming vote delegation certificates (these will be used in the next PR introducing UI for governance):
    • updated prepareCertificates to convert from trezor-connect certificate format into coinselection lib format
    • introduced getVotingCertificates for creating voting cert in trezor connect format

Example usage of getVotingCertificates:

 // delegating to DRep
getVotingCertificates(stakingPath, {
  type: PROTO.CardanoDRepType.KEY_HASH,
  keyHash: '<hex>',
}),

  // User does not wish to participate in governance
 getVotingCertificates(stakingPath, {
   type: PROTO.CardanoDRepType.ABSTAIN,
 }),

Next Steps

The next PR will focus on introducing a user interface to allow users to select their preferred governance participation option before proceeding with staking reward withdrawals.

@slowbackspace slowbackspace force-pushed the chore/cardano-tagged-cbor-sets branch 3 times, most recently from 32b3e22 to e44b0bb Compare December 12, 2024 09:48
@slowbackspace slowbackspace force-pushed the chore/cardano-tagged-cbor-sets branch from e44b0bb to aa0e06b Compare December 12, 2024 09:55
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.

1 participant