Search
Preparing search index...
The search index is not available
@inkandswitch/backchannel
Options
All
Public
Public/Protected
All
Inherited
Menu
@inkandswitch/backchannel
crypto
Module crypto
Index
Type aliases
Encrypted
Protocol
Message
Variables
symmetric
Functions
compute
Discovery
Key
export
Key
generate
Key
import
Key
Type aliases
Encrypted
Protocol
Message
Encrypted
Protocol
Message
:
{
cipher
:
string
;
nonce
:
string
}
Type declaration
cipher
:
string
nonce
:
string
Variables
Const
symmetric
symmetric
:
{
decrypt
:
(
key
:
string
, msg
:
EncryptedProtocolMessage
)
=>
Promise
<
string
>
;
encrypt
:
(
key
:
string
, msg
:
string
)
=>
Promise
<
EncryptedProtocolMessage
>
}
= ...
Type declaration
decrypt
:
(
key
:
string
, msg
:
EncryptedProtocolMessage
)
=>
Promise
<
string
>
(
key
:
string
, msg
:
EncryptedProtocolMessage
)
:
Promise
<
string
>
Parameters
key:
string
msg:
EncryptedProtocolMessage
Returns
Promise
<
string
>
encrypt
:
(
key
:
string
, msg
:
string
)
=>
Promise
<
EncryptedProtocolMessage
>
(
key
:
string
, msg
:
string
)
:
Promise
<
EncryptedProtocolMessage
>
Parameters
key:
string
msg:
string
Returns
Promise
<
EncryptedProtocolMessage
>
Functions
compute
Discovery
Key
compute
Discovery
Key
(
key
:
Key
)
:
Promise
<
DiscoveryKey
>
Parameters
key:
Key
Returns
Promise
<
DiscoveryKey
>
export
Key
export
Key
(
key
:
CryptoKey
)
:
Promise
<
Key
>
Parameters
key:
CryptoKey
Returns
Promise
<
Key
>
generate
Key
generate
Key
(
)
:
Promise
<
Key
>
Returns
Promise
<
Key
>
import
Key
import
Key
(
key
:
Key
|
Buffer
)
:
Promise
<
CryptoKey
>
Parameters
key:
Key
|
Buffer
Returns
Promise
<
CryptoKey
>
Exports
automerge-
db
backchannel
backchannel.test
blobs
crypto
db
db.test
index
types
wormhole
Encrypted
Protocol
Message
symmetric
compute
Discovery
Key
export
Key
generate
Key
import
Key
Generated using
TypeDoc