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

Cardano: Update and regenerate protobuffs #85

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading