From fa3382c8c07aa772b44cba881990a778a7afef8b Mon Sep 17 00:00:00 2001 From: Micah Kendall Date: Sat, 27 Jan 2024 21:53:25 +1100 Subject: [PATCH 1/3] init --- cip-augment-spend-purpose/README.md | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 cip-augment-spend-purpose/README.md diff --git a/cip-augment-spend-purpose/README.md b/cip-augment-spend-purpose/README.md new file mode 100644 index 000000000..63a701e20 --- /dev/null +++ b/cip-augment-spend-purpose/README.md @@ -0,0 +1,57 @@ +--- +CIP: ? +Title: ? +Category: ? +Status: Proposed +Authors: + - Micah Kendall +Implementors: [] +Discussions: + - https://github.com/cardano-foundation/CIPs/pull/? +Created: YYYY-MM-DD +License: CC-BY-4.0 +--- + + + +## Abstract + + +## Motivation: why is this CIP necessary? + + +## Specification + + +## Rationale: how does this CIP achieve its goals? + + +## Path to Active + +### Acceptance Criteria + + +### Implementation Plan + + + + +## Copyright + + \ No newline at end of file From cf427f6071dee3cdde46050a1b282f1ef1ec1f33 Mon Sep 17 00:00:00 2001 From: Micah Kendall Date: Sat, 27 Jan 2024 22:04:56 +1100 Subject: [PATCH 2/3] finished outline --- cip-augment-spend-purpose/README.md | 40 ++++++++--------------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/cip-augment-spend-purpose/README.md b/cip-augment-spend-purpose/README.md index 63a701e20..1bb71e97b 100644 --- a/cip-augment-spend-purpose/README.md +++ b/cip-augment-spend-purpose/README.md @@ -1,7 +1,7 @@ --- -CIP: ? -Title: ? -Category: ? +CIP: ???? +Title: Augment Spend Purpose +Category: Plutus Status: Proposed Authors: - Micah Kendall @@ -12,46 +12,28 @@ Created: YYYY-MM-DD License: CC-BY-4.0 --- - - ## Abstract +We should change the purpose Spend(OutputReference) to instead be Spend(OutputReference, ScriptHash), where ScriptHash is a bytearray / bytestring of the script hash. + ## Motivation: why is this CIP necessary? - +This makes common patterns in contract development much cheaper, but also more ergonomic. ## Specification - +There should be a 2nd value in the Spend constructor for the script purpose, which is the script hash of the spending script. ## Rationale: how does this CIP achieve its goals? - +We would have the script hash available as a constant-time lookup, instead of linear-time. ## Path to Active ### Acceptance Criteria - +The plutus ledger team add the script hash as a second value inside the spend constructor. ### Implementation Plan - - - +N/A as it is a very simple change ## Copyright - - \ No newline at end of file +This CIP is free and unencumbered, released by it's author into the public domain. \ No newline at end of file From 1340b204d5461535801a730bdd50ade8b19e7059 Mon Sep 17 00:00:00 2001 From: Micah Kendall Date: Sat, 27 Jan 2024 22:05:15 +1100 Subject: [PATCH 3/3] more fields filled --- cip-augment-spend-purpose/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cip-augment-spend-purpose/README.md b/cip-augment-spend-purpose/README.md index 1bb71e97b..b7bced425 100644 --- a/cip-augment-spend-purpose/README.md +++ b/cip-augment-spend-purpose/README.md @@ -7,8 +7,8 @@ Authors: - Micah Kendall Implementors: [] Discussions: - - https://github.com/cardano-foundation/CIPs/pull/? -Created: YYYY-MM-DD + - https://github.com/cardano-foundation/CIPs/pull/754 +Created: 2024-01-27 License: CC-BY-4.0 ---