Skip to content

[metadata] Move pubkey commitment out of burn transaction#44

Open
schancel wants to merge 1 commit into
masterfrom
metadata-commitments
Open

[metadata] Move pubkey commitment out of burn transaction#44
schancel wants to merge 1 commit into
masterfrom
metadata-commitments

Conversation

@schancel
Copy link
Copy Markdown
Contributor

Currently, for burn transactions are expected to be a hash of the combination of the pubkey and the payload hash. However, this has consequences for the topic posts which need to have a commitment to their hash directly on the blockchain, and voting transactions do not necessarily need to sign the payloads.

On the other hand, for address metadata if the serialized payload does not commit to the pubkey then the burn transactions could be reusable to input many addresses into the registry server.

This commit does two things:

  1. Repeat the pubkey in the AddressMetadata so the hash of the serialized protobuf will commit to the pubkey.
  2. Remove the need to commit to the pubkey in the OP_RETURN commitment that burns some Lotus.

Currently, for burn transactions are expected to be a hash of the
combination of the pubkey and the payload hash. However, this has
consequences for the topic posts which need to have a commitment
to their hash directly on the blockchain, and voting transactions
do not necessarily need to sign the payloads.

On the other hand, for address metadata if the serialized payload does
not commit to the pubkey then the burn transactions could be reusable
to input many addresses into the registry server.

This commit does two things:

1. Repeat the pubkey in the AddressMetadata so the hash of the serialized
   protobuf will commit to the pubkey.
2. Remove the need to commit to the pubkey in the OP_RETURN commitment that
   burns some Lotus.
@schancel schancel requested a review from EyeOfPython February 19, 2023 00:17
@schancel
Copy link
Copy Markdown
Contributor Author

schancel commented Mar 7, 2023

Goes with: StampChat/stamp#655

I'm trying to decide if we want to do this, or specialize the commitment. I like people being able to fetch payloads based on the blockchain commitment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant