nostr icon indicating copy to clipboard operation
nostr copied to clipboard

MMR tag: add merkle mountain range tag

Open nostronaut opened this issue 1 year ago • 2 comments

Description

Add merkle mountain range as an append only vector commitment to nostr events' metadata. This produces an authenticated event log.

The NIP was briefly sketched here

The current PR fork is used here

nostronaut avatar May 21 '23 23:05 nostronaut

@yukibtc

we further worked out the code to integrate MMR into nostr

we isolated the library side in this file https://github.com/nostronaut/mmr-nostr/blob/master/src/lib.rs

that could belong to a feature in this crate if there's interest, not important though. for example, we have to recreate EventId, in order to not impl Foreign trait for foreign type, et cetera

we plan to write the nip after implementation is decent

nostronaut avatar Jun 02 '23 17:06 nostronaut

@yukibtc

we further worked out the code to integrate MMR into nostr

we isolated the library side in this file https://github.com/nostronaut/mmr-nostr/blob/master/src/lib.rs

that could belong to a feature in this crate if there's interest, not important though. for example, we have to recreate EventId, in order to not impl Foreign trait for foreign type, et cetera

we plan to write the nip after implementation is decent

Thanks, I will check your repo.

If it's needed to recreate EventId and other struct, I think it's better to integrate the code in the nostr crate, as you said.

yukibtc avatar Jun 06 '23 08:06 yukibtc