TiddlyWiki.org

Ticket #1 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Add unique identifiers for Tiddlers

Reported by: greg.wolff@rdvp.org Assigned to: JeremyRuston
Priority: major Milestone: 2.1
Component: core Version:
Severity: high Keywords:
Cc:

Description

Following up on the tracking and synchronization document and discussion, I would like request that the cooking process assign ID attributes to the Tiddlers placed in a final .html file.

In particular, the ID should have the form 0xC123.0xD456 where 0xC123 is the SHA1 hash of a source URL or "CONTEXT" and 0xD456 is the SHA1 hash of the actual body of the Tiddler.

For our puposes, it's probably easiest to just use the URL for the svn directory. For example,

http://svn.tiddlywiki.org/Trunk/verticals/tiddlywiki.com/tiddlers/ 

has the hash 0x9ee255bcaddcaa64f28 (truncated to 20 chars). The current content of DefaultTiddlers in that location is:

"HelloThere [[Donations]] [[LatestNews]] [[GettingStarted]] [[MainFeatures]]"

with the hash 0x4ed2f7b05ca3490cb444c10 (also truncated).

So the resulting DIV should be something like: <div ID="0x9ee255bcaddcaa64f28.0x4ed2f7b05ca3490cb444c10" tiddler="DefaultTiddlers?" ...

Change History

04/05/06 16:23:30 changed by JeremyRuston

  • owner changed from admin to JeremyRuston.
  • component changed from support to core.
  • milestone changed from next_version to 2.1.

12/06/06 00:05:49 changed by MartinBudden

May I suggest that base64 encoding rather than hex (base16 encoding) is used to store the hash? Base64 provides 6 bits per byte and hex provides 4 bits per byte. So a 160bit SHA-1 hash can be stored in 27 bytes using Base64, but requires 40 bytes using hex (42 bytes if you prepend "0x").

10/07/06 11:08:56 changed by JeremyRuston

  • status changed from new to assigned.

06/10/06 14:15:28 changed by JeremyRuston

  • status changed from assigned to closed.
  • resolution set to fixed.

Basic infrastructure for computing tiddler fingerprints was introduced in TiddlyWiki 2.1.0