Skip to content

Commit 5dd1e40

Browse files
Copilotachamayou
andcommitted
Rename describe_cose_receipt to describe_cose_receipt_v1 for API consistency
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
1 parent ba24294 commit 5dd1e40

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111

1212
### Added
1313

14-
- Added `ccf::describe_cose_receipt(receipt)` to obtain COSE receipts with Merkle proof in unprotected header for non-signature TXs, and empty unprotected header for signature TXs (#7700).
14+
- Added `ccf::describe_cose_receipt_v1(receipt)` to obtain COSE receipts with Merkle proof in unprotected header for non-signature TXs, and empty unprotected header for signature TXs (#7700).
1515
- `NetworkIdentitySubsystemInterface` now exposes `get_trusted_keys()`, returning all trusted network identity keys as a `TrustedKeys` map (#7690).
1616

1717
### Changed

include/ccf/receipt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ namespace ccf
161161
const TxReceiptImpl& receipt);
162162
std::optional<SerialisedCoseSignature> describe_cose_signature_v1(
163163
const TxReceiptImpl& receipt);
164-
std::optional<SerialisedCoseReceipt> describe_cose_receipt(
164+
std::optional<SerialisedCoseReceipt> describe_cose_receipt_v1(
165165
const TxReceiptImpl& receipt);
166166

167167
// Manual JSON serializers are specified for these types as they are not

samples/apps/logging/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ namespace loggingapp
21802180
ccf::historical::StatePtr historical_state) {
21812181
assert(historical_state->receipt);
21822182
auto cose_receipt =
2183-
describe_cose_receipt(*historical_state->receipt);
2183+
describe_cose_receipt_v1(*historical_state->receipt);
21842184
if (!cose_receipt.has_value())
21852185
{
21862186
ctx.rpc_ctx->set_error(

src/node/historical_queries_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ namespace ccf
256256
return receipt.cose_signature;
257257
}
258258

259-
std::optional<SerialisedCoseReceipt> describe_cose_receipt(
259+
std::optional<SerialisedCoseReceipt> describe_cose_receipt_v1(
260260
const TxReceiptImpl& receipt)
261261
{
262262
auto signature = describe_cose_signature_v1(receipt);

0 commit comments

Comments
 (0)