Documentation
¶
Overview ¶
Package identity is 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 Private ¶
type Private struct { bmutil.Address NonceTrialsPerByte uint64 ExtraBytes uint64 SigningKey *btcec.PrivateKey EncryptionKey *btcec.PrivateKey }
Private contains the identity of the user, which includes private encryption and signing keys, POW parameters and the address that contains information about stream number and address version.
func ImportWIF ¶
func ImportWIF(address, signingKeyWif, encryptionKeyWif string, nonceTrials, extraBytes uint64) (*Private, error)
ImportWIF creates a Private identity 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 ¶
NewRandom creates an identity based on a random data, 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 (*Private) CreateAddress ¶
CreateAddress populates the Address object within the identity based on the provided version and stream values and also generates the ripe.
type Public ¶
type Public struct { bmutil.Address NonceTrialsPerByte uint64 ExtraBytes uint64 SigningKey *btcec.PublicKey EncryptionKey *btcec.PublicKey }
Public contains the identity of the remote user, which includes public encryption and signing keys, POW parameters and the address that contains information about stream number and address version.
func IdentityFromPubKeyMsg ¶
IdentityFromPubKeyMsg generates an *identity.Public object based on a wire.MsgPubKey object.
func (*Public) CreateAddress ¶
CreateAddress populates the Address object within the identity based on the provided version and stream values and also generates the ripe.