Demos and Instructions on How to Build a Website on BSV MetaNet.
- Build a HTML page
- upload it to bitcoin at b.bitdb.network
Siteloader is kind of middleware that help browser access metanet website.
A website loader prepare pages, scripts and other resources from blockchain.
See Siteloader
For multi page website, see metasite-loader
See Bitcoin Application Data protocol
The basic principles are
- Each data(Or data group) should have it's own key, we call it DataKey.
- From DataKey and other information, a deterministic cryptic prefix can be derived, which allow DataKey and only DataKey to search.
- Data should be encrypted with key that derived deterministic from DataKey, which allow DataKey and only DataKey to decrypt.
- Data should be signed with key derived deterministic from DataKey.
In metanet, user is identity, which may be a master private key.
Neither the identity key nor its public key should exposed to public.
One should not use identity key to sign or transact.
All the other key are derived from identity key.
The derivation path from identity key should be hardened to make sure identity key is not recoverable.
The derivation path from its child keys can be hardened (e.g DataKey) or unhardened (e.g FilesystemKey).
Unhardened derivation allow deriving child public key from parent public key.
integrate Moneybutton in your html page.
implement a simple wallet whose xpriv is derived from identity key.
Parameters from #