Property | Type | Description | |
---|---|---|---|
$B | |||
$Bx | |||
$By | |||
$I | |||
$b | |||
$d | |||
$l | |||
$q |
Method | Description | |
---|---|---|
__construct ( ) | ||
checkvalid ( $s, $m, $pk ) | ||
publickey ( string $sk ) : string | Generates the public key of a given private key | |
signature ( $m, $sk, $pk ) |
Method | Description | |
---|---|---|
H ( $m ) | ||
Hint ( $m ) | ||
bit ( $h, $i ) | ||
bitsToString ( $bits ) | ||
dec2bin_i ( $decimal_i ) | ||
decodeint ( $s ) | ||
decodepoint ( $s ) | * def decodepoint(s): y = sum(2**i * bit(s,i) for i in range(0,b-1)) x = xrecover(y) if x & 1 != bit(s,b-1): x = q-x P = [x,y] if not isoncurve(P): raise Exception("decoding point that is not on curve") return P | |
edwards ( $P, $Q ) | ||
encodeint ( $y ) | ||
encodepoint ( $P ) | ||
expmod ( $b, $e, $m ) | ||
inv ( $x ) | ||
isoncurve ( $P ) | ||
pymod ( $x, $m ) | ((n % M) + M) % M //python modulus craziness | |
scalarloop ( $P, $e ) | ||
scalarmult ( $P, $e ) | ||
xrecover ( $y ) |
protected decodepoint ( $s ) |