Documentation ¶
Overview ¶
Responsible for creation and management of user identities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
Represents a Bitmessage address
func DecodeAddress ¶
Decode the Bitmessage address. The assumption is that input address is properly formatted (according to specs).
func (*Address) CalcDoubleHash ¶
CalcDoubleHash calculates the double sha512 sum of the address, the first half of which is used as private encryption key for the public key object and the second half is used as a tag.
type Base ¶
func (*Base) SetDefaultPOWParams ¶
func (id *Base) SetDefaultPOWParams()
SetDefaultPOWParams sets values of ExtraBytes and NonceTrialsPerByte based on hard-coded values in constants.go.
type Foreign ¶
Foreign contains the identity of the remote user, which includes the public encryption and signing keys, the address that contains information about stream number and address version and information determining the POW accepted by the identity.
func (*Foreign) CreateAddress ¶
CreateAddress populates the Address object within the identity based on the provided version and stream values and also generates the ripe.
type Own ¶
type Own struct { Base SigningKey *elliptic.PrivateKey EncryptionKey *elliptic.PrivateKey }
Own contains the identity of the user, which includes public and private encryption and signing keys, as well as the address that contains information about stream number and address version.
func Import ¶
Import creates an Identity object from the Bitmessage address and Wallet Import Format (WIF) signing and encryption keys.
func NewDeterministic ¶
Create identities based on a deterministic passphrase. Note that this does not create an address.
func NewRandom ¶
Create an identity based on a random number generator, with the required number of initial zeros in front (minimum 1). Each initial zero requires exponentially more work. Note that this does not create an address.
func (*Own) CreateAddress ¶
CreateAddress populates the Address object within the identity based on the provided version and stream values and also generates the ripe.