holepunchto / hypercore

Hypercore is a secure, distributed append-only log.

Home Page:https://docs.holepunch.to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entry Signature Getter

brucejaya opened this issue · comments

In pre-v10 versions of Hypercore the feed.signature([index], callback) provided a simple way to access signatures associated with an entry. This functionality has now been removed and as far as I can tell (?) there is no way to access signatures without messing with the internals (which I really don't want to do). Signatures are extremely useful and should surely just fall under the umbrella of a primitive within the Hypercore protocol - are there obvious alternatives that I am missing? Cheers.

core.core.tree.signature

Only one sig exists

So it's no longer possible to lookup the signature for a specific entry? To associate a signature with an entry would ultimately be a question of bolt on logic

the latest signature signs everything (ie the root of the merkle tree). you can compute a tree proof get the sig of a single block from that