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

CIP-0040? | Collateral output #216

Merged
merged 18 commits into from
Jul 2, 2022
Merged
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion CollateralOutput/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
CIP: ?
Title: Explicit Collateral Output
Authors: Sebastien Guillemot <[email protected]>
Authors: Sebastien Guillemot <[email protected]>, Jared Corduan <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Authors: Sebastien Guillemot <[email protected]>, Jared Corduan <jared.corduan@iohk.io>
Authors: Sebastien Guillemot <[email protected]>, Andre Knispel <andre.knispel@iohk.io>

Status: Draft
Type: Standards
Created: 2022-02-10
Expand Down Expand Up @@ -55,6 +55,10 @@ However, if collateral output is specified, then
2. Collateral output needs to be balanced according to `sum(collateral_input) = sum(collateral_output) + collateral_consumed`
Where `collateral_consumed` is equal to the old formula (`quot (txfee txb * (collateralPercent pp)) 100`). Note that when collateral is consumed, any certificate, etc. in the transaction is ignored so they have no impact on the change calculation.

## Self-contained balancing

Some use-cases like hardware wallets, who do not have access to the content of the collateral inputs, cannot easily check if the collateral is balanced. Similar to how we specify an explicit fee as part of the transaction body to tackle this problem, the transaction body also needs a new field that explicitly specified how much collateral will be consumed in the case of phase-2 validation failure.

## Copyright

This CIP is licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode)