Crate sn_api[][src]

Modules

fetch
files
multimap
nrs
register
req

Request module.

resp

Response module.

wallet

Structs

AuthGranted

It represents the authentication response.

AuthReq

Represents an authorisation request.

AuthdStatus
AuthedApp
Safe
SafeAuthdClient
SafeAuthenticator
SafeUrl

Represents a SafeUrl

XorName

A 256-bit number, viewed as a point in XOR space.

Enums

Error

Error type returned by the API

Error

Error type returned by the API

IpcError

Authd Ipc errors.

IpcMsg

IPC message.

IpcReq

IPC request.

IpcResp

IPC response.

Keypair

Wrapper for different keypair types.

PublicKey

Wrapper for different public key types.

SafeContentType
SafeDataType
SafeUrlType

An enumeration of possible SafeUrl types.

SecretKey

Wrapper for different secret key types.

XorUrlBase

Constants

DEFAULT_XORURL_BASE
DEFAULT_XORURL_BASE
NRS_MAP_TYPE_TAG
XOR_NAME_LEN

Constant byte length of XorName.

Functions

derive_location_and_keypair

Perform all derivations and seeding to deterministically obtain location and Keypair from input

derive_secrets

Derive Passphrase, Password and Salt (in order).

ed_sk_from_hex
generate_network_address

Generates User’s Identity for the network using supplied credentials in a deterministic way. This is similar to the username in various places.

parse_coins_amount
sk_to_hex

Type Definitions

AuthAllowPrompt
AuthedAppsList
BootstrapConfig

QuicP2P bootstrap info, shared from Authenticator to apps.

PendingAuthReqs
Result
Result
SafeAuthReq
SafeAuthReqId
XorUrl