Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > ThreadKey

ThreadKey class

Key is a thread encryption key with two components.

Signature:

export declare class ThreadKey 

Constructors

ConstructorModifiersDescription
(constructor)(service, read)Constructs a new instance of the ThreadKey class

Properties

PropertyModifiersTypeDescription
read?Uint8Array | undefined(Optional)
serviceUint8Array

Methods

MethodModifiersDescription
canRead()
fromBytes(bytes)staticCreate Key from bytes.
fromRandom(withRead)staticCreate a new set of keys.
fromString(s)staticCreate Key by decoding a base32-encoded string.
isDefined()
toBytes()
toString()Return the base32-encoded string representation of raw key bytes. For example: Full: "brv7t5l2h55uklz5qwpntcat26csaasfchzof3emmdy6povabcd3a2to2qdkqdkto2prfhizerqqudqsdvwherbiy4nazqxjejgdr4oy" Network: "bp2vvqody5zm6yqycsnazb4kpqvycbdosos352zvpsorxce5koh7q"
  • ThreadKey class
  • Constructors
  • Properties
  • Methods
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio