Search
Preparing search index...
The search index is not available
juvenal-lib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
juvenal-lib
crypto/SchnorrProofHelios
SchnorrProofHelios
Class SchnorrProofHelios
Hierarchy
SchnorrProof
SchnorrProofHelios
Index
Constructors
constructor
Properties
homomorphism
Methods
byte
Tree
ToCommitment
byte
Tree
ToReply
challenge
instance
ToByte
Tree
prove
sha1
verify
verify
Election
Guard
Constructors
constructor
new
Schnorr
Proof
Helios
(
hom
:
ExpHom
)
:
SchnorrProofHelios
Parameters
hom:
ExpHom
Returns
SchnorrProofHelios
Properties
homomorphism
homomorphism
:
ExpHom
Methods
byte
Tree
ToCommitment
byte
Tree
ToCommitment
(
byteTree
:
ByteTree
)
:
PGroupElement
Parameters
byteTree:
ByteTree
Returns
PGroupElement
byte
Tree
ToReply
byte
Tree
ToReply
(
byteTree
:
ByteTree
)
:
PRingElement
Parameters
byteTree:
ByteTree
Returns
PRingElement
challenge
challenge
(
first
:
ByteTree
, second
:
HashFunction
)
:
PRingElement
Parameters
first:
ByteTree
second:
HashFunction
Returns
PRingElement
instance
ToByte
Tree
instance
ToByte
Tree
(
instance
:
PGroupElement
)
:
ByteTree
Parameters
instance:
PGroupElement
Returns
ByteTree
prove
prove
(
label
:
Uint8Array
, instance
:
any
, witness
:
any
, hashfunction
:
HashFunction
, randomSource
:
RandomSource
, statDist
:
number
)
:
Uint8Array
Parameters
label:
Uint8Array
instance:
any
witness:
any
hashfunction:
HashFunction
randomSource:
RandomSource
statDist:
number
Returns
Uint8Array
Private
sha1
sha1
(
bytes
:
string
)
:
string
Parameters
bytes:
string
Returns
string
verify
verify
(
label
:
Uint8Array
, instance
:
PGroupElement
|
PGroupElement
[]
, hashfunction
:
HashFunction
, proof
:
Uint8Array
)
:
boolean
Parameters
label:
Uint8Array
instance:
PGroupElement
|
PGroupElement
[]
hashfunction:
HashFunction
proof:
Uint8Array
Returns
boolean
verify
Election
Guard
verify
Election
Guard
(
label
:
Uint8Array
, instance
:
ByteTree
, commitment
:
ByteTree
|
Uint8Array
, challenge
:
Uint8Array
, response
:
ByteTree
|
Uint8Array
)
:
boolean
Parameters
label:
Uint8Array
instance:
ByteTree
commitment:
ByteTree
|
Uint8Array
challenge:
Uint8Array
response:
ByteTree
|
Uint8Array
Returns
boolean
Exports
crypto/
Schnorr
Proof
Helios
Schnorr
Proof
Helios
constructor
homomorphism
byte
Tree
ToCommitment
byte
Tree
ToReply
challenge
instance
ToByte
Tree
prove
sha1
verify
verify
Election
Guard
Generated using
TypeDoc