Skip to content

Commit 6ecf013

Browse files
committed
Cardano: Update and regenerate protobuffs
Update and regenerate protobuffs to allow vote delegation on cardano
1 parent 1efd120 commit 6ecf013

File tree

4 files changed

+137
-113
lines changed

4 files changed

+137
-113
lines changed

Diff for: CHANGELOG-rust.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

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

89
## 0.5.0
910

Diff for: messages/cardano.proto

+15-1
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,30 @@ message CardanoSignTransactionRequest {
8585
repeated AssetGroup asset_groups = 4;
8686
}
8787

88-
// See https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L150
88+
// See https://github.com/IntersectMBO/cardano-ledger/blob/cardano-ledger-conway-1.12.0.0/eras/conway/impl/cddl-files/conway.cddl#L273
8989
message Certificate {
9090
message StakeDelegation {
9191
repeated uint32 keypath = 1;
9292
bytes pool_keyhash = 2;
9393
}
94+
message VoteDelegation {
95+
enum CardanoDRepType {
96+
KEY_HASH = 0;
97+
SCRIPT_HASH = 1;
98+
ALWAYS_ABSTAIN = 2;
99+
ALWAYS_NO_CONFIDENCE = 3;
100+
}
101+
102+
// keypath in this instance refers to stake credential
103+
repeated uint32 keypath = 1;
104+
CardanoDRepType type = 2;
105+
optional bytes drep_credhash = 3;
106+
}
94107
oneof cert {
95108
Keypath stake_registration = 1;
96109
Keypath stake_deregistration = 2;
97110
StakeDelegation stake_delegation = 3;
111+
VoteDelegation vote_delegation = 10;
98112
}
99113
}
100114

0 commit comments

Comments
 (0)