Page: [root]/hellnet/tech/metatrees | src | faq | css

Metatrees

Metatrees are signed trees of named file links. They can be used to publish file structures or any other treeish structure. Each metatree is identified by public key hash and key-unique name.

Example of metatree:

This would be stored in ./meta/HFX9RFVRH2W933P7EQ2VX9YZXFEQCGXF352WSKCGW2CD4C0PAG08FX58NK3Q5J7GCQ254TVYAJQMFKGXHV4CW712PD2BMQG8X505YJ/test

{
	"updated" : 1258639915,
	"key" : "HFX9RFVRH2W933P7EQ2VX9YZXFEQCGXF352WSKCGW2CD4C0PAG08FX58NK3Q5J7GCQ254TVYAJQMFKGXHV4CW712PD2BMQG8X505YJ",
	"name" : "test"
	"content" : "hell://chunk/3JDZQGJTSGJZ60PT7MJ9GKMD2F54DNFEKDJ7MACYXNYW3Y4JT83K3RW6AYEKPWN2C2TCA86RGT4R155D0NHRTYZCKH1KGPXWA0GPH6T"
}
<empty line>
<binary RSA signature>

Description of top-level fields:

"updated" : UNIX timestamp of last update
"key" : public key hash
"name" : name of this meta
"content" : link to meta tree

That would be stored under URI hell://chunk/3JDZQGJTSGJZ60PT7MJ9GKMD2F54DNFEKDJ7MACYXNYW3Y4JT83K3RW6AYEKPWN2C2TCA86RGT4R155D0NHRTYZCKH1KGPXWA0GPH6T:

{
		"helloworld" : "hell://file/C8JP31JA6ECY9V6E3D1Z6ASZ6A6PSAN12ZS2AZ0R0KZEP51VWWQWFQED9F0GDKZ0QVSR89P84WT2FZERYJN5E0XEHA46B7VFHJYEF5",
		"hellodir" : {
			"file1" : "hell://file/1Y6AY0HCP5DYQAZEYZNE4KGN2PJ8BPMAKXKAFZS1XNDC94EVJX19Z8NBE57HBCTYMZW99CDT4268AAK49JNNQJJCHCRMYTYADR35N9S",
			"file2" : "hell://file/QWG05NHFRS0FCBK2G0FWR1TKJSQBV9Z7K0C2F01S6FM33FGC3ZZ2NV45AWHZS68BNPGYS9DJCWN5DE97HJ5VSZJQNDVPPT048MKSSQ"
		}
}

This JSON represents a filesystem with unlimited subdirectories, keys are filenames, values are hell:// links (only /chunk or /file)

See also

Metatrees transfer|


Powered by bitcheese wiki engine