@request-seal/core API
Preparing search index...
index
createKeyHandle
Function createKeyHandle
createKeyHandle
(
algorithm
:
unknown
,
port
:
Custodian
,
capabilities
?:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
,
)
:
Result
<
Readonly
<
{
algorithm
:
CustodyAlgorithm
;
capabilities
:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
;
identity
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
KeyIdentity
>
>
;
publicKey
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
PublicKey
>
>
;
release
:
()
=>
Promise
<
Result
<
true
>
>
;
sign
:
(
algorithm
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Uint8Array
<
ArrayBuffer
>
>
>
;
unwrap
:
(
algorithm
:
unknown
,
wrappedKey
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
decrypt
:
(
ciphertext
:
unknown
,
options
:
unknown
,
context
:
Context
,
)
=>
Promise
<
Result
<
(...)
>
>
;
length
:
128
|
256
;
release
:
()
=>
Promise
<
Result
<
(...)
>
>
;
}
,
>
,
>
,
>
;
verify
:
(
algorithm
:
unknown
,
signature
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
true
>
>
;
}
,
>
,
>
Wrap trusted custodian code under deadline, result validation, and fault containment.
Parameters
algorithm
:
unknown
port
:
Custodian
Optional
capabilities
:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
Returns
Result
<
Readonly
<
{
algorithm
:
CustodyAlgorithm
;
capabilities
:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
;
identity
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
KeyIdentity
>
>
;
publicKey
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
PublicKey
>
>
;
release
:
()
=>
Promise
<
Result
<
true
>
>
;
sign
:
(
algorithm
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Uint8Array
<
ArrayBuffer
>
>
>
;
unwrap
:
(
algorithm
:
unknown
,
wrappedKey
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
decrypt
:
(
ciphertext
:
unknown
,
options
:
unknown
,
context
:
Context
,
)
=>
Promise
<
Result
<
(...)
>
>
;
length
:
128
|
256
;
release
:
()
=>
Promise
<
Result
<
(...)
>
>
;
}
,
>
,
>
,
>
;
verify
:
(
algorithm
:
unknown
,
signature
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
true
>
>
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@request-seal/core API
Loading...
Wrap trusted custodian code under deadline, result validation, and fault containment.