Preparing search index...
The search index is not available
Documentation
Documentation
@divviup/prio3
Prio3SumVec
Class Prio3SumVec
Hierarchy (
View Summary
)
Prio3
<
number
[]
,
number
[]
>
Prio3SumVec
Index
Constructors
constructor
Properties
bits
chunk
Length
flp
id
length
nonce
Size
proofs
rand
Size
rounds
shares
verify
Key
Size
xof
Methods
aggregate
domain
Separation
Tag
encode
Aggregation
Parameter
encode
Aggregator
Share
encode
Input
Share
encode
Preparation
Message
encode
Preparation
Share
encode
Public
Share
encode
Test
Vector
Aggregator
Share
encode
Test
Vector
Input
Share
encode
Test
Vector
Output
Share
encode
Test
Vector
Preparation
Message
encode
Test
Vector
Preparation
Share
encode
Test
Vector
Public
Share
is
Valid
prepare
Init
prepare
Next
run
shard
shard
Encoded
test
unshard
unshard
Preparation
Shares
Constructors
constructor
new
Prio3SumVec
(
__namedParameters
:
SumVecArgs
)
:
Prio3SumVec
Parameters
__namedParameters
:
SumVecArgs
Returns
Prio3SumVec
Properties
Readonly
bits
bits
:
number
Readonly
chunk
Length
chunkLength
:
number
Readonly
flp
flp
:
Flp
<
number
[]
,
number
[]
>
Readonly
id
id
:
number
Readonly
length
length
:
number
Readonly
nonce
Size
nonceSize
:
16
Readonly
proofs
proofs
:
number
Readonly
rand
Size
randSize
:
number
Readonly
rounds
rounds
:
1
Readonly
shares
shares
:
number
Readonly
verify
Key
Size
verifyKeySize
:
number
Readonly
xof
xof
:
XofConstructor
Methods
aggregate
aggregate
(
_aggregationParameter
:
null
,
outputShares
:
OutputShare
[]
,
)
:
AggregatorShare
Parameters
_aggregationParameter
:
null
outputShares
:
OutputShare
[]
Returns
AggregatorShare
domain
Separation
Tag
domainSeparationTag
(
usage
:
number
)
:
Buffer
Parameters
usage
:
number
Returns
Buffer
encode
Aggregation
Parameter
encodeAggregationParameter
(
_
:
null
)
:
Buffer
Parameters
_
:
null
Returns
Buffer
encode
Aggregator
Share
encodeAggregatorShare
(
aggregatorShare
:
bigint
[]
)
:
Buffer
Parameters
aggregatorShare
:
bigint
[]
Returns
Buffer
encode
Input
Share
encodeInputShare
(
__namedParameters
:
InputShare
)
:
Buffer
Parameters
__namedParameters
:
InputShare
Returns
Buffer
encode
Preparation
Message
encodePreparationMessage
(
__namedParameters
:
PreparationMessage
)
:
Buffer
Parameters
__namedParameters
:
PreparationMessage
Returns
Buffer
encode
Preparation
Share
encodePreparationShare
(
__namedParameters
:
PreparationShare
)
:
Buffer
Parameters
__namedParameters
:
PreparationShare
Returns
Buffer
encode
Public
Share
encodePublicShare
(
__namedParameters
:
PublicShare
)
:
Buffer
Parameters
__namedParameters
:
PublicShare
Returns
Buffer
encode
Test
Vector
Aggregator
Share
encodeTestVectorAggregatorShare
(
aggregatorShare
:
AggregatorShare
)
:
string
Parameters
aggregatorShare
:
AggregatorShare
Returns
string
encode
Test
Vector
Input
Share
encodeTestVectorInputShare
(
inputShare
:
InputShare
)
:
string
Parameters
inputShare
:
InputShare
Returns
string
encode
Test
Vector
Output
Share
encodeTestVectorOutputShare
(
outputShare
:
bigint
[]
)
:
string
[]
Parameters
outputShare
:
bigint
[]
Returns
string
[]
encode
Test
Vector
Preparation
Message
encodeTestVectorPreparationMessage
(
preparationMessage
:
PreparationMessage
,
)
:
string
Parameters
preparationMessage
:
PreparationMessage
Returns
string
encode
Test
Vector
Preparation
Share
encodeTestVectorPreparationShare
(
preparationShare
:
PreparationShare
)
:
string
Parameters
preparationShare
:
PreparationShare
Returns
string
encode
Test
Vector
Public
Share
encodeTestVectorPublicShare
(
publicShare
:
PublicShare
)
:
string
Parameters
publicShare
:
PublicShare
Returns
string
is
Valid
isValid
(
_aggregationParameter
:
null
,
previousAggregationParameters
:
null
[]
,
)
:
boolean
Parameters
_aggregationParameter
:
null
previousAggregationParameters
:
null
[]
Returns
boolean
prepare
Init
prepareInit
(
verifyKey
:
Buffer
,
aggregatorId
:
number
,
_aggregationParameter
:
null
,
nonce
:
Buffer
,
__namedParameters
:
PublicShare
,
__namedParameters
:
InputShare
,
)
:
Promise
<
{
preparationShare
:
PreparationShare
;
preparationState
:
PreparationState
;
}
,
>
Parameters
verifyKey
:
Buffer
aggregatorId
:
number
_aggregationParameter
:
null
nonce
:
Buffer
__namedParameters
:
PublicShare
__namedParameters
:
InputShare
Returns
Promise
<
{
preparationShare
:
PreparationShare
;
preparationState
:
PreparationState
;
}
,
>
prepare
Next
prepareNext
(
preparationState
:
PreparationState
,
preparationMessage
:
PreparationMessage
,
)
:
|
{
preparationShare
:
PreparationShare
;
preparationState
:
PreparationState
;
}
|
{
outputShare
:
OutputShare
}
Parameters
preparationState
:
PreparationState
preparationMessage
:
PreparationMessage
Returns
|
{
preparationShare
:
PreparationShare
;
preparationState
:
PreparationState
;
}
|
{
outputShare
:
OutputShare
}
run
run
(
__namedParameters
:
{
aggregationParameter
:
null
;
measurements
:
number
[]
[]
;
nonces
?:
Buffer
[]
;
rands
?:
Buffer
[]
;
verifyKey
?:
Buffer
;
}
,
)
:
Promise
<
TestVector
<
null
,
number
[]
,
number
[]
>
>
Parameters
__namedParameters
:
{
aggregationParameter
:
null
;
measurements
:
number
[]
[]
;
nonces
?:
Buffer
[]
;
rands
?:
Buffer
[]
;
verifyKey
?:
Buffer
;
}
Returns
Promise
<
TestVector
<
null
,
number
[]
,
number
[]
>
>
shard
shard
(
measurement
:
number
[]
,
nonce
:
Buffer
,
rand
:
Buffer
,
)
:
Promise
<
{
inputShares
:
InputShare
[]
;
publicShare
:
PublicShare
}
>
Parameters
measurement
:
number
[]
nonce
:
Buffer
rand
:
Buffer
Returns
Promise
<
{
inputShares
:
InputShare
[]
;
publicShare
:
PublicShare
}
>
shard
Encoded
shardEncoded
(
measurement
:
number
[]
,
nonce
:
Buffer
,
rand
:
Buffer
,
)
:
Promise
<
{
inputShares
:
Buffer
[]
;
publicShare
:
Buffer
}
>
Parameters
measurement
:
number
[]
nonce
:
Buffer
rand
:
Buffer
Returns
Promise
<
{
inputShares
:
Buffer
[]
;
publicShare
:
Buffer
}
>
test
test
(
aggregationParameter
:
null
,
measurements
:
number
[]
[]
)
:
Promise
<
number
[]
>
Parameters
aggregationParameter
:
null
measurements
:
number
[]
[]
Returns
Promise
<
number
[]
>
unshard
unshard
(
_aggregationParameter
:
null
,
aggregatorShares
:
AggregatorShare
[]
,
measurementCount
:
number
,
)
:
number
[]
Parameters
_aggregationParameter
:
null
aggregatorShares
:
AggregatorShare
[]
measurementCount
:
number
Returns
number
[]
unshard
Preparation
Shares
unshardPreparationShares
(
_aggregationParameter
:
null
,
preparationShares
:
PreparationShare
[]
,
)
:
Promise
<
PreparationMessage
>
Parameters
_aggregationParameter
:
null
preparationShares
:
PreparationShare
[]
Returns
Promise
<
PreparationMessage
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
bits
chunk
Length
flp
id
length
nonce
Size
proofs
rand
Size
rounds
shares
verify
Key
Size
xof
Methods
aggregate
domain
Separation
Tag
encode
Aggregation
Parameter
encode
Aggregator
Share
encode
Input
Share
encode
Preparation
Message
encode
Preparation
Share
encode
Public
Share
encode
Test
Vector
Aggregator
Share
encode
Test
Vector
Input
Share
encode
Test
Vector
Output
Share
encode
Test
Vector
Preparation
Message
encode
Test
Vector
Preparation
Share
encode
Test
Vector
Public
Share
is
Valid
prepare
Init
prepare
Next
run
shard
shard
Encoded
test
unshard
unshard
Preparation
Shares
Documentation
Loading...