Documentation ¶
Index ¶
- Constants
- func Dupstore(s *Base, d *Base)
- func Format()
- func Hash2block(h *Hash, i int, l uint64) (uint64, error)
- func MintLabel(s string) (Knod, Body)
- func MintPrincipal(pub, priv []byte) (Knod, Knod, Body, Knod, Body)
- func Op2string(o byte) string
- func Place()
- func Readin()
- func Readone()
- func Retrieve()
- func Validate()
- func Writeone()
- func Writeout()
- type Base
- func (b *Base) Get0(h *Hash) (k *Knod, found bool)
- func (b *Base) Init(fn string, reinit bool) (br *Base, e error)
- func (b *Base) LoadPreULs() (e error)
- func (b Base) ReadBodyBlock(i uint64) (*Body, error)
- func (b Base) ReadKnodBlock(i uint64) (*Knod, error)
- func (b *Base) SetLocalTemporacle() (e error)
- func (b *Base) SetWorld() (e error)
- func (b Base) WriteBodyBlock(kb *Body, i uint64) (e error)
- func (b Base) WriteKnodBlock(k *Knod, i uint64) (e error)
- type Body
- type Btext
- type Btlen
- type Cksm
- type Hash
- type Kdate
- type Kndx
- type Knod
- type Lodge
- type Sign
- type Slst
Constants ¶
View Source
const ( UNINITIALIZED int = 0 // Lodge status UNPREPARED int = 1 AVAILABLE int = 2 LOADING int = 3 STANDBY int = 4 KFREE byte = 0 LABEL byte = 1 INTRO byte = 2 PRIVT byte = 3 TEMPO byte = 4 DFOLD byte = 5 NMACC byte = 6 ITEXT byte = 7 REFER byte = 8 KROOT byte = 251 BDURL byte = 252 BODYN byte = 253 BODY0 byte = 254 KBNCE byte = 255 HASH = 1 HASHSIGN = 2 SIGN = 3 VERIFY = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { Status int Store *os.File Limit uint64 Fqdn string Subn string StoreName string }
func (*Base) LoadPreULs ¶
func (*Base) SetLocalTemporacle ¶
type Body ¶
type Knod ¶
type Knod struct { Op byte // op except 0 = hash slot free, 255 = hash slot available due to allocation bounce on content size Subl byte // index within reference (low) Subh byte // index within reference (high) Date Kdate Hk Hash Hr Hash Ttag Kndx Pchk Cksm // checksum of Rchk of nodes held... if two lodges differ on this, synchronization is indicated Ptag Kndx Tp Slst Itag Kndx // index to a well-known universal label for un-tracked tagging, expanded to hash on transmission or zero, also may be used as salt Rchk Cksm // checksum of Pchk of nodes held... if two lodges differ on this, synchronization is indicated Rtag Kndx Tr Slst S Sign }
func MintCategory ¶
func (*Knod) HashSignVerify ¶
hash, sign, or verify the concatenated binary value of the op, date, tag hash, parent hash, ref hash, text content.
Click to show internal directories.
Click to hide internal directories.