Class: Sigma::CommitmentHint
- Inherits:
-
Object
- Object
- Sigma::CommitmentHint
- 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
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
-
.with_raw_pointer(pointer) ⇒ CommitmentHint
Takes ownership of an existing CommitmentHint Pointer.
Instance Attribute Details
#pointer ⇒ Object
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.
152 153 154 |
# File 'lib/sigma/transaction.rb', line 152 def self.with_raw_pointer(pointer) init(pointer) end |