Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
Commit is calculatd by the following formula
sG = R - h(R, m) * V
Where
s: sign for the message m G: elliptic curve base R: R-point m: message V: oracle's public key
func CommitMulti ¶
CommitMulti calculates a commitment by summing commitments of multiple msgs
func Sign ¶
func Sign(opriv, rpriv *btcec.PrivateKey, m []byte) []byte
Sign is calculated by the following formula
s = k - h(R, m) * v
Where
s: sign h: hash function k: random nonce R: R-point R = kG m: message G: elliptic curve base v: oracle's private key
Parameters:
rpriv: random point EC private key opriv: oracle's EC private key m: message
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.