Crate sn_api

source ·

Modules

Structs

It represents the authentication response.
Represents an authorisation request.
Address of a Register, different from a ChunkAddress in that it also includes a tag.
Represents a SafeUrl
Container for storing information about other sections in the network.
Version Hash corresponding to the entry hash where the content is stored
A 256-bit number, viewed as a point in XOR space.

Enums

We encode the content type that a XOR-URL is targetting, this allows the consumer/user to treat the content in particular ways when the content requires it.
An address of data on the network
We also encode the native SAFE data type where the content is being stored on the SAFE Network, this allows us to fetch the targetted data using the corresponding API, regardless of the data that is being held which is identified by the ContentType instead.
Error type returned by the API
Authd Ipc errors.
IPC message.
IPC request.
IPC response.
Wrapper for different keypair types.
Wrapper for different public key types.
Wrapper for different secret key types.
An enumeration of possible SafeUrl types.
Supported base encoding for XOR URLs

Constants

Name of the default network contacts file the Client uses. The file is expected to be found at user’s OS home directory, e.g. in Linux this path would become: $HOME/.safe/network_contacts/default
Type tag to use for the NrsMapContainer stored on Register
Constant byte length of XorName.

Functions

Perform all derivations and seeding to deterministically obtain location and Keypair from input
Derive Passphrase, Password and Salt (in order).
Generates User’s Identity for the network using supplied credentials in a deterministic way. This is similar to the username in various places.

Type Definitions