@woss/seal-ts - v0.2.0
GitHub
npm
Preparing search index...
SealValidator
Interface SealValidator
Validator API exposed by the vendored SEAL-JS script (typed;
_
-prefixed are internals).
interface
SealValidator
{
validateBuffer
(
buffer
:
ArrayBuffer
|
Uint8Array
<
ArrayBufferLike
>
,
filename
?:
string
,
opts
?:
SealValidateOptions
,
)
:
Promise
<
SealValidationResult
[]
>
;
detectFormat
(
bytes
:
Uint8Array
)
:
string
;
_parseDNSTXT
(
txt
:
string
,
)
:
Record
<
string
,
string
>
&
{
_pBin
?:
Uint8Array
<
ArrayBufferLike
>
}
|
null
;
_findAllSEALRecords
(
bytes
:
Uint8Array
)
:
SealParsedRecord
[]
;
_scanByFormat
(
bytes
:
Uint8Array
)
:
SealParsedRecord
[]
;
_computeByteRanges
(
bSpec
:
string
,
fileLen
:
number
,
sigStart
:
number
,
sigEnd
:
number
,
prevStart
?:
number
,
prevEnd
?:
number
,
)
:
{
ranges
:
[
number
,
number
]
[]
;
error
:
string
|
null
}
;
_decodeSig
(
sField
:
string
,
sfField
?:
string
,
)
:
{
sigBytes
:
Uint8Array
;
timestamp
:
string
|
null
;
error
:
string
|
null
}
;
}
Index
Methods
validate
Buffer
detect
Format
_
parse
DNSTXT
_
find
All
SEAL
Records
_
scan
By
Format
_
compute
Byte
Ranges
_
decode
Sig
Methods
validate
Buffer
validateBuffer
(
buffer
:
ArrayBuffer
|
Uint8Array
<
ArrayBufferLike
>
,
filename
?:
string
,
opts
?:
SealValidateOptions
,
)
:
Promise
<
SealValidationResult
[]
>
Parameters
buffer
:
ArrayBuffer
|
Uint8Array
<
ArrayBufferLike
>
Optional
filename
:
string
Optional
opts
:
SealValidateOptions
Returns
Promise
<
SealValidationResult
[]
>
detect
Format
detectFormat
(
bytes
:
Uint8Array
)
:
string
Parameters
bytes
:
Uint8Array
Returns
string
_
parse
DNSTXT
_parseDNSTXT
(
txt
:
string
,
)
:
Record
<
string
,
string
>
&
{
_pBin
?:
Uint8Array
<
ArrayBufferLike
>
}
|
null
Parameters
txt
:
string
Returns
Record
<
string
,
string
>
&
{
_pBin
?:
Uint8Array
<
ArrayBufferLike
>
}
|
null
_
find
All
SEAL
Records
_findAllSEALRecords
(
bytes
:
Uint8Array
)
:
SealParsedRecord
[]
Parameters
bytes
:
Uint8Array
Returns
SealParsedRecord
[]
_
scan
By
Format
_scanByFormat
(
bytes
:
Uint8Array
)
:
SealParsedRecord
[]
Parameters
bytes
:
Uint8Array
Returns
SealParsedRecord
[]
_
compute
Byte
Ranges
_computeByteRanges
(
bSpec
:
string
,
fileLen
:
number
,
sigStart
:
number
,
sigEnd
:
number
,
prevStart
?:
number
,
prevEnd
?:
number
,
)
:
{
ranges
:
[
number
,
number
]
[]
;
error
:
string
|
null
}
Parameters
bSpec
:
string
fileLen
:
number
sigStart
:
number
sigEnd
:
number
Optional
prevStart
:
number
Optional
prevEnd
:
number
Returns
{
ranges
:
[
number
,
number
]
[]
;
error
:
string
|
null
}
_
decode
Sig
_decodeSig
(
sField
:
string
,
sfField
?:
string
,
)
:
{
sigBytes
:
Uint8Array
;
timestamp
:
string
|
null
;
error
:
string
|
null
}
Parameters
sField
:
string
Optional
sfField
:
string
Returns
{
sigBytes
:
Uint8Array
;
timestamp
:
string
|
null
;
error
:
string
|
null
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
validate
Buffer
detect
Format
_
parse
DNSTXT
_
find
All
SEAL
Records
_
scan
By
Format
_
compute
Byte
Ranges
_
decode
Sig
GitHub
npm
@woss/seal-ts - v0.2.0
Loading...
Validator API exposed by the vendored SEAL-JS script (typed;
_-prefixed are internals).