Documentation
¶
Index ¶
- Constants
- func Commit(A1, A2 matrix.PolyQMatrix, m, r vector.PolyQVector) (vector.PolyQVector, vector.PolyQVector)
- func CommitmentKeys(ck []byte) (matrix.PolyQMatrix, matrix.PolyQMatrix)
- func Hash0(data []byte) poly.PolyQ
- func Hash1(data []byte) [32]byte
- func Hash2(data []byte) [32]byte
- func Hash3(data []byte) [32]byte
- func Hash4(data []byte) [32]byte
- func Hint(r, rPrime vector.PolyVector, alpha int64) (vector.PolyVector, vector.PolyVector)
- func OpenCommitment(A1, A2 matrix.PolyQMatrix, c1, c2, m, r vector.PolyQVector) bool
- func UseHint(r, h1, h2 vector.PolyVector, alpha int64) vector.PolyVector
- type ChanComms
- type Comms
- type ProtocolMessage
- type TopcoatPrivateKeyShare
- type TopcoatPublicKey
- type TopcoatSignature
Constants ¶
View Source
const ( ProtocolMessageTypeOK = "OK" ProtocolMessageTypeABORT = "ABORT" ProtocolMessageTypeRESTART = "RESTART" ProtocolMessageTypeERROR = "ERROR" )
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
func Commit(A1, A2 matrix.PolyQMatrix, m, r vector.PolyQVector) (vector.PolyQVector, vector.PolyQVector)
func CommitmentKeys ¶
func CommitmentKeys(ck []byte) (matrix.PolyQMatrix, matrix.PolyQMatrix)
func Hint ¶
func Hint(r, rPrime vector.PolyVector, alpha int64) (vector.PolyVector, vector.PolyVector)
func OpenCommitment ¶
func OpenCommitment(A1, A2 matrix.PolyQMatrix, c1, c2, m, r vector.PolyQVector) bool
func UseHint ¶
func UseHint(r, h1, h2 vector.PolyVector, alpha int64) vector.PolyVector
Types ¶
type ProtocolMessage ¶
type ProtocolMessage struct {
Message string
}
type TopcoatPrivateKeyShare ¶
type TopcoatPrivateKeyShare struct {
type TopcoatPublicKey ¶
type TopcoatPublicKey struct { ASeed [32]byte T vector.PolyQVector }
func (TopcoatPublicKey) Serialize ¶
func (pk TopcoatPublicKey) Serialize() []byte
type TopcoatSignature ¶
type TopcoatSignature struct {
Z, C1, C2 vector.PolyQVector
H1, H2 vector.PolyVector
RSeed1, RSeed2 [32]byte
Iterations int //temp
}
func (TopcoatSignature) Serialize ¶
func (sig TopcoatSignature) Serialize() []byte
Click to show internal directories.
Click to hide internal directories.