Class: Sigma::CommitmentHint

Inherits:
Object
  • Object
show all
Extended by:
FFI::Library
Defined in:
lib/sigma/transaction.rb

Overview

A family of hints which are about a correspondence between a public image of a secret image and prover’s commitment to randomness (“a” in a sigma protocol).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pointerObject

Returns the value of attribute pointer.



146
147
148
# File 'lib/sigma/transaction.rb', line 146

def pointer
  @pointer
end

Class Method Details

.with_raw_pointer(pointer) ⇒ CommitmentHint

Note:

A user of sigma_rb generally does not need to call this function

Takes ownership of an existing CommitmentHint Pointer.

Parameters:

  • pointer (FFI::MemoryPointer)

Returns:



152
153
154
# File 'lib/sigma/transaction.rb', line 152

def self.with_raw_pointer(pointer)
  init(pointer)
end