bdb

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2017 License: ISC Imports: 20 Imported by: 4

Documentation

Overview

Package bdb implements an instance of the database package backed by BoltDB. The structure of the database is: - objectsByHashes (bucket) -- Inventory hash (32 bytes) -> Object data

- objectsByCounters (bucket) -- Getpubkey/Pubkey/Msg/Broadcast/Unknown (bucket) --- Counter value (uint64) -> Inventory hash (32 bytes)

- counterPositions (bucket) -- Getpubkey/Pubkey/Msg/Broadcast/Unknown -> uint64

- encryptedPubkeysByTag (bucket) -- Tag (32 bytes) -> Encrypted pubkey

- publicIdentityByAddress (bucket) -- Address (string starting with BM-) (bucket) --- nonceTrials -> uint64 --- extraBytes -> uint64 --- signingKey -> compressed public key (33 bytes) --- encryptionKey -> compressed public key (33 bytes) --- behavior -> uint32

- misc -- version -> uint8

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(args ...interface{}) (database.Db, error)

OpenDB opens a database, initializing it if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL