Module: SchnorrSig

Extended by:
Pure
Defined in:
lib/schnorr_sig/pure.rb,
lib/schnorr_sig/fast.rb,
lib/schnorr_sig/utils.rb

Overview

This implementation is based on the BIP340 spec: bips.xyz/340

Defined Under Namespace

Modules: Fast, Pure, Utils Classes: Error, SanityCheck, SpecError

Constant Summary collapse

CONTEXT =
Secp256k1::Context.create
GROUP =
ECDSA::Group::Secp256k1
P =

smaller than 256**32

GROUP.field.prime
N =

smaller than P

GROUP.order
B =

32

GROUP.byte_length
KEY =

bytes

32
SIG =

bytes

64

Method Summary

Methods included from Pure

bytes, int, keypair, lift_x, point, pubkey, random_bytes, select_even_y, sign, soft_verify?, tagged_hash, verify?

Methods included from Utils

#big2bin, #bin2big, #bin2hex, #binary!, #check!, #hex2bin