Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyLookupMsg ¶
CreateKeyLookupMsg returns a JSON encoding of a protocol.KeyLookupRequest for the given name.
Types ¶
type Config ¶
type Config struct { *application.CommonConfig SignPubkeyPath string `toml:"sign_pubkey_path"` SigningPubKey sign.PublicKey InitSTRPath string `toml:"init_str_path"` InitSTR *protocol.DirSTR RegAddress string `toml:"registration_address,omitempty"` Address string `toml:"address"` }
Config contains the client's configuration needed to send a request to a CONIKS server: the path to the server's signing public-key file and the actual public-key parsed from that file; the server's addresses for sending registration requests and other types of requests, respectively.
Note that if RegAddress is empty, the client falls back to using Address for all request types.
func NewConfig ¶
NewConfig initializes a new client configuration at the given file path, with the given config encoding, server signing public key path, registration address, and server address.