Space SDK Package

Space SDK Package

  • Users
  • Storage
  • Space Docs

›Types

User API

  • Users.authenticate() method
  • Users.withStorage() method
  • Users.createIdentity() method
  • Users.recoverKeysByPassphrase() method
  • Users.backupKeysByPassphrase() method
  • Users.list() method
  • Users.remove() method

Space User API

  • SpaceUser.storageAuth property
  • SpaceUser.token property

Types

  • Identity interface

@spacehq/sdk > Identity

Identity interface

Identity represents an entity capable of signing a message. This is a simple "private key" interface that must be capable of returning the associated "public key" for verification. In many cases, the Identity will just be a private key.

Signature:

export interface Identity 

Properties

PropertyTypeDescription
privKeyUint8ArrayRaw private key bytes of this identity
publicPublicGet the public key associated with this identity. This can be any object that satisfies the Public interface.

Methods

MethodDescription
sign(data)Sign the message using this identity and return the signature.
← Previous
  • Identity interface
  • Properties
  • Methods
Space SDK Package
Docs
Getting StartedUsersStorage
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @spacestorage