Skip to content
Open
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
9 changes: 9 additions & 0 deletions protocols/4.0-versioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Versioning in OP_RETURN

Protocols can implement versioning by chaining based upon a private key per version that is issued in an OP_RETURN.

## Proposal

A new, optional, data element `<version-key>` is provided. This is public key derived from a private key known to the publisher of the OP_RETURN.

A second data element `<prior-version-key>` is required when issuing a transaction that increments the version number of the OP_RETURN. This key matches the previous transaction's `<version-key>` and the new OP_RETURN also provides its own `<version-key>`. This new `<version-key>` is derived from the private key for the prior version's OP_RETURN, and can be verified as a valid version increment by an explorer or protocol interpretation engine.