Crate sn_api

source ·

Modules

Structs

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

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