Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // URL is the git URL for the repository. URL = "github.com/indra-labs/indra" // GitRef is the gitref, as in refs/heads/branchname. GitRef = "refs/heads/main" // ParentGitCommit is the commit hash of the parent HEAD. ParentGitCommit = "b817031e1f36a678cdc29c099a4b432d4bfafa41" // BuildTime stores the time when the current binary was built. BuildTime = "2023-01-19T01:20:15Z" // SemVer lists the (latest) git tag on the release. SemVer = "v0.1.11" // PathBase is the path base returned from runtime caller. PathBase = "/home/loki/src/github.com/indra-labs/indra/" // Major is the major number from the tag. Major = 0 // Minor is the minor number from the tag. Minor = 1 // Patch is the patch version number from the tag. Patch = 11 )
Functions ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
buidl
Package main is a subset of bumper, all it does mainly is refresh the PathBase, so that log prints correctly parse the embedded debug information used to show the source code location.
|
Package main is a subset of bumper, all it does mainly is refresh the PathBase, so that log prints correctly parse the embedded debug information used to show the source code location. |
bumper
Package main is a tool for creating version information to be placed at the repository root of a project.
|
Package main is a tool for creating version information to be placed at the repository root of a project. |
pkg
|
|
crypto/ciph
Package ciph manages encryption ciphers and encrypting blobs of data.
|
Package ciph manages encryption ciphers and encrypting blobs of data. |
crypto/key/cloak
Package cloak provides a cover for the public keys for which a node has a private key that prevents matching the keys between one message and another.
|
Package cloak provides a cover for the public keys for which a node has a private key that prevents matching the keys between one message and another. |
crypto/key/ecdh
Package ecdh is provides a function to take a secp256k1 public and private key pair to generate a shared secret that the corresponding opposite half from the counterparty can use to generate the same cipher.
|
Package ecdh is provides a function to take a secp256k1 public and private key pair to generate a shared secret that the corresponding opposite half from the counterparty can use to generate the same cipher. |
crypto/key/prv
Package prv is a wrapper around secp256k1 library from the Decred project to handle, generate and serialise secp256k1 private keys.
|
Package prv is a wrapper around secp256k1 library from the Decred project to handle, generate and serialise secp256k1 private keys. |
crypto/key/pub
Package pub is a wrapper around secp256k1 library from the Decred project to handle generate and serialise secp256k1 public keys, including deriving them from private keys.
|
Package pub is a wrapper around secp256k1 library from the Decred project to handle generate and serialise secp256k1 public keys, including deriving them from private keys. |
crypto/key/sig
Package sig provides functions to Sign hashes of messages, generating a standard compact 65 byte Signature and recover the 33 byte pub.Key embedded in it.
|
Package sig provides functions to Sign hashes of messages, generating a standard compact 65 byte Signature and recover the 33 byte pub.Key embedded in it. |
crypto/key/signer
Package signer is an implementation of an efficient method for generating new private keys for putting a unique ECDH cipher half on every single message segment and eliminating correlations in the ciphertexts of the messages.
|
Package signer is an implementation of an efficient method for generating new private keys for putting a unique ECDH cipher half on every single message segment and eliminating correlations in the ciphertexts of the messages. |
crypto/nonce
Package nonce provides a simple interface for generating standard AES encryption nonces that give strong cryptographic entropy to message encryption.
|
Package nonce provides a simple interface for generating standard AES encryption nonces that give strong cryptographic entropy to message encryption. |
crypto/sha256
Package sha256 provides a simple interface for single and double SHA256 hashes, used with secp256k1 signatures, message digest checksums, cloaked public key "addresses" and so on.
|
Package sha256 provides a simple interface for single and double SHA256 hashes, used with secp256k1 signatures, message digest checksums, cloaked public key "addresses" and so on. |
node
Package node maintains information about peers on the network and associated connection sessions.
|
Package node maintains information about peers on the network and associated connection sessions. |
onion
Package onion contains the functions required to generate onion packets and unwrap them one layer at a time.
|
Package onion contains the functions required to generate onion packets and unwrap them one layer at a time. |
packet
Package packet provides a standard message binary serialised data format and message segmentation scheme which includes address.Sender cloaked public key and address.Receiver private keys for generating a shared cipher and applying to messages/message segments.
|
Package packet provides a standard message binary serialised data format and message segmentation scheme which includes address.Sender cloaked public key and address.Receiver private keys for generating a shared cipher and applying to messages/message segments. |
util/slice
Package slice is a collection of miscellaneous functions involving slices of bytes, including little-endian encoding for 16, 32 and 64-bit unsigned integers used for serialisation length prefixes and system entropy based hash chain padding.
|
Package slice is a collection of miscellaneous functions involving slices of bytes, including little-endian encoding for 16, 32 and 64-bit unsigned integers used for serialisation length prefixes and system entropy based hash chain padding. |
Click to show internal directories.
Click to hide internal directories.