Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
PrivateKey
Class PrivateKey
Implements
PrivateKey
Index
Constructors
constructor
Properties
public
Key
secp256k1
timestamp
Methods
decrypt
encrypt
generated
matches
shared
Secret
sign
sign
Key
to
Bytes
validate
Public
Key
from
Bytes
generate
Constructors
constructor
new
Private
Key
(
obj
)
:
PrivateKey
Parameters
obj
:
PrivateKey
Returns
PrivateKey
Properties
public
Key
public
Key
:
PublicKey
secp256k1
secp256k1
:
secp256k1
timestamp
timestamp
:
Long
Methods
decrypt
decrypt
(
encrypted
,
peer
,
additionalData
?
)
:
Promise
<
Uint8Array
>
Parameters
encrypted
:
Ciphertext
peer
:
PublicKey
Optional
additionalData
:
Uint8Array
Returns
Promise
<
Uint8Array
>
encrypt
encrypt
(
plain
,
peer
,
additionalData
?
)
:
Promise
<
Ciphertext
>
Parameters
plain
:
Uint8Array
peer
:
PublicKey
Optional
additionalData
:
Uint8Array
Returns
Promise
<
Ciphertext
>
generated
generated
(
)
:
undefined
|
Date
Returns
undefined
|
Date
matches
matches
(
key
)
:
boolean
Parameters
key
:
PublicKey
Returns
boolean
shared
Secret
shared
Secret
(
peer
)
:
Uint8Array
Parameters
peer
:
SignedPublicKey
|
PublicKey
Returns
Uint8Array
sign
sign
(
digest
)
:
Promise
<
Signature
>
Parameters
digest
:
Uint8Array
Returns
Promise
<
Signature
>
sign
Key
sign
Key
(
pub
)
:
Promise
<
PublicKey
>
Parameters
pub
:
PublicKey
Returns
Promise
<
PublicKey
>
to
Bytes
to
Bytes
(
)
:
Uint8Array
Returns
Uint8Array
validate
Public
Key
validate
Public
Key
(
)
:
boolean
Returns
boolean
Static
from
Bytes
from
Bytes
(
bytes
)
:
PrivateKey
Parameters
bytes
:
Uint8Array
Returns
PrivateKey
Static
generate
generate
(
)
:
PrivateKey
Returns
PrivateKey
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
public
Key
secp256k1
timestamp
decrypt
encrypt
generated
matches
shared
Secret
sign
sign
Key
to
Bytes
validate
Public
Key
from
Bytes
generate
@xmtp/xmtp-js
AuthCache
BrowserStoragePersistence
Ciphertext
Client
ConsentListEntry
ContentTypeId
ConversationV1
ConversationV2
Conversations
DecodedMessage
EncryptedPersistence
HttpApiClient
InMemoryKeystore
InMemoryPersistence
InvitationV1
KeyGeneratorKeystoreProvider
LocalAuthenticator
MessageV1
MessageV2
NetworkKeystoreProvider
PrefixedPersistence
PrivateKey
PrivateKeyBundleV1
PrivateKeyBundleV2
PublicKey
PublicKeyBundle
SealedInvitation
Signature
SignedPublicKey
SignedPublicKeyBundle
SnapProvider
StaticKeystoreProvider
Stream
TextCodec
ApiClient
Authenticator
CodecRegistry
ContentCodec
Conversation
EncodedContent
Keystore
KeystoreProvider
Persistence
Signer
ClientOptions
ConsentListEntryType
ConsentState
ContentOptions
ExtractDecodedType
GetMessageContentTypeFromClient
InvitationContext
KeyStoreOptions
KeystoreApiDefs
KeystoreApiEntries
KeystoreApiMethods
KeystoreApiRequestEncoders
KeystoreApiRequestValues
KeystoreApiResponseDecoders
KeystoreInterface
KeystoreInterfaceRequestValues
KeystoreInterfaces
KeystoreRPC
KeystoreRPCCodec
LegacyOptions
ListMessagesOptions
ListMessagesPaginatedOptions
Message
NetworkOptions
OnConnectionLostCallback
PrivateKeyBundle
PrivatePreferencesAction
PublishParams
Query
QueryAllOptions
QueryParams
QueryStreamOptions
SendOptions
SnapKeystoreApiDefs
SnapKeystoreApiEntries
SnapKeystoreApiMethods
SnapKeystoreApiRequestEncoders
SnapKeystoreApiRequestValues
SnapKeystoreApiResponseDecoders
SnapKeystoreInterface
SnapKeystoreInterfaceRequestValues
SubscribeCallback
SubscribeParams
SubscriptionManager
TopicData
UnsubscribeFn
XmtpEnv
ApiUrls
Compression
ContentTypeFallback
ContentTypeText
SortDirection
keystoreApiDefs
snapKeystoreApiDefs
buildContentTopic
buildDirectMessageTopic
buildDirectMessageTopicV2
buildUserContactTopic
buildUserIntroTopic
buildUserInviteTopic
buildUserPrivateStoreTopic
dateToNs
decodeContactBundle
decodeContent
decrypt
defaultKeystoreProviders
encrypt
exportHmacKey
fromNanoString
generateHmacSignature
hkdfHmacKey
importHmacKey
mapPaginatedStream
nsToDate
retry
toNanoString
verifyHmacSignature