Skip to content

Commit

Permalink
Cardano: Update and regenerate protobuffs
Browse files Browse the repository at this point in the history
Update and regenerate protobuffs to allow vote delegation on cardano
  • Loading branch information
RostarMarek committed Sep 24, 2024
1 parent 1efd120 commit cb6bee3
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 113 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 0.6.0
- btc: handle error when an input's previous transaction is required but missing
- cardano: added support for vote delegation

## 0.5.0

Expand Down
16 changes: 15 additions & 1 deletion messages/cardano.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,30 @@ message CardanoSignTransactionRequest {
repeated AssetGroup asset_groups = 4;
}

// See https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L150
// See https://github.com/IntersectMBO/cardano-ledger/blob/cardano-ledger-conway-1.12.0.0/eras/conway/impl/cddl-files/conway.cddl#L273
message Certificate {
message StakeDelegation {
repeated uint32 keypath = 1;
bytes pool_keyhash = 2;
}
message VoteDelegation {
enum CardanoDRepType {
KEY_HASH = 0;
SCRIPT_HASH = 1;
ALWAYS_ABSTAIN = 2;
ALWAYS_NO_CONFIDENCE = 3;
}

// keypath in this instance refers to stake credential
repeated uint32 keypath = 1;
CardanoDRepType type = 2;
optional bytes drep_credhash = 3;
}
oneof cert {
Keypath stake_registration = 1;
Keypath stake_deregistration = 2;
StakeDelegation stake_delegation = 3;
VoteDelegation vote_delegation = 10;
}
}

Expand Down
Loading

0 comments on commit cb6bee3

Please sign in to comment.