Documentation
¶
Overview ¶
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.
Index ¶
Constants ¶
const BlindLen = 3
const HashLen = 5
const Len = BlindLen + HashLen
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PubKey ¶
PubKey is the blinded hash of a public key used to conceal a message public key from attackers.
func GetCloak ¶
GetCloak returns a value which a receiver with the private key can identify the association of a message with the peer in order to retrieve the private key to generate the message cipher.
The three byte blinding factor concatenated in front of the public key generates the 5 bytes at the end of the PubKey code. In this way the source public key it relates to is hidden to any who don't have this public key, which only the parties know.