Skip to content

Reference key on chain #872

@FletcherMan

Description

@FletcherMan

Background

Morph aims to build a payment settlement layer. To better support payment use cases, we plan to introduce a Reference Key at the chain level.

The native transaction structure does not currently support carrying additional fields for a reference. We need to introduce this field so that off-chain systems can directly query on-chain transaction information using it. The following requirements must be met:

  • Indexing: Support indexed queries based on the Reference Key, either alone or in combination with other fields.
  • Performance: No degradation to chain performance.
  • Readability & Usability: The key should be easy for merchants to generate and use.

Approach

We will rename the existing AltFeeTx to MorphTx and add Reference Key related fields to support the inclusion and indexing of this field.
A new RPC query interface will also be introduced to allow querying transaction information based on the Reference Key.

Reference

https://larkfive.sg.larksuite.com/wiki/K3j8wYaFyiNYGmkrU5DlQ2nOgXc

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions