Skip to content

Class BSV::Primitives::Schnorr::Proof

Inherits: Object

A Schnorr zero-knowledge proof consisting of a commitment point, blinded shared secret, and response scalar.

Attributes

r [R]

  • @return [PublicKey] the commitment point R

s_prime [R]

  • @return [PublicKey] the blinded shared secret S'

z [R]

  • @return [OpenSSL::BN] the response scalar z

Public Instance Methods

initialize(r, s_prime, z)

  • @param r [PublicKey] commitment point
  • @param s_prime [PublicKey] blinded shared secret
  • @param z [OpenSSL::BN] response scalar
  • @return [Proof] a new instance of Proof