Preparing search index...
The search index is not available
NDNts
NDNts
@ndn/keychain
KeyStore
KeyPair
Class KeyPair<Asym, I>
Loaded key pair.
Type Parameters
Asym
extends
boolean
=
any
I
=
any
Index
Constructors
constructor
Properties
algo
name
pub
pvt
Accessors
decrypter
encrypter
public
Key
signer
verifier
Constructors
constructor
new
Key
Pair
<
Asym
,
I
>
(
name
,
algo
,
pvt
,
pub
)
:
KeyStore
.
KeyPair
<
Asym
,
I
>
Type Parameters
Asym
extends
boolean
=
any
I
=
any
Parameters
name
:
Name
algo
:
CryptoAlgorithm
<
I
,
Asym
,
any
>
pvt
:
If
<
Asym
,
CryptoAlgorithm
.
PrivateKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
,
CryptoAlgorithm
.
PrivateKey
<
I
>
|
CryptoAlgorithm
.
SecretKey
<
I
>
>
pub
:
If
<
Asym
,
CryptoAlgorithm
.
PublicKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
|
CryptoAlgorithm
.
PublicKey
<
I
>
>
Returns
KeyStore
.
KeyPair
<
Asym
,
I
>
Properties
Readonly
algo
algo
:
CryptoAlgorithm
<
I
,
Asym
,
any
>
Readonly
name
name
:
Name
Readonly
pub
pub
:
If
<
Asym
,
CryptoAlgorithm
.
PublicKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
|
CryptoAlgorithm
.
PublicKey
<
I
>
>
Readonly
pvt
pvt
:
If
<
Asym
,
CryptoAlgorithm
.
PrivateKey
<
I
>
,
CryptoAlgorithm
.
SecretKey
<
I
>
,
CryptoAlgorithm
.
PrivateKey
<
I
>
|
CryptoAlgorithm
.
SecretKey
<
I
>
>
Accessors
decrypter
get
decrypter
(
)
:
NamedDecrypter
<
Asym
>
Returns
NamedDecrypter
<
Asym
>
encrypter
get
encrypter
(
)
:
NamedEncrypter
<
Asym
>
Returns
NamedEncrypter
<
Asym
>
public
Key
get
publicKey
(
)
:
PublicKey
Returns
PublicKey
signer
get
signer
(
)
:
NamedSigner
<
Asym
>
Returns
NamedSigner
<
Asym
>
verifier
get
verifier
(
)
:
NamedVerifier
<
Asym
>
Returns
NamedVerifier
<
Asym
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
algo
name
pub
pvt
decrypter
encrypter
public
Key
signer
verifier
NDNts
Loading...
Loaded key pair.