Skip to content

Conversation

randomlogin
Copy link
Member

Now it seeks a proof in the tags as described here:

{
...
"tags":[["s","@cosmos",<proof>]],
...
}


const proof = this.veritas.verifyProof(evt.proof);

const proofBase64 = getProofFromTags(evt.tags);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Encoding the proof as a base64 string significantly increases the size of each event sent over the wire which undermines the purpose of CompactEvent being compact. We should keep the proof in binary form when transmitting, especially to avoid UDP fragmentation issues.

if (isNaN(evt.kind)) throw new Error('Invalid event kind must be a number');

let space, d;

for (const tag of evt.tags) {
if (tag.length < 2) continue;
if (!space && anchored && tag[0] === 'space') {
if (!space && anchored && tag[0] === 's' && tag.length >= 2) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't the tag.length >= 2 redundant given there's if (tag.length < 2) continue; first?

@buffrr
Copy link
Member

buffrr commented Aug 20, 2025

Another concern is that this change isn’t backward compatible with existing Fabric nodes. Not many deployed yet but it’s still something we should take into account

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.

2 participants