Class: Casper::Entity::BlockProof
- Inherits:
-
Object
- Object
- Casper::Entity::BlockProof
- Defined in:
- lib/entity/block_proof.rb
Overview
BlockProof
Instance Method Summary collapse
-
#get_public_key ⇒ String
Public_key.
-
#get_signature ⇒ String
Signature.
-
#initialize(proof = {}) ⇒ BlockProof
constructor
A new instance of BlockProof.
Constructor Details
#initialize(proof = {}) ⇒ BlockProof
Returns a new instance of BlockProof.
8 9 10 11 |
# File 'lib/entity/block_proof.rb', line 8 def initialize(proof = {}) @public_key = proof[:public_key] @signature = proof[:signature] end |
Instance Method Details
#get_public_key ⇒ String
Returns public_key.
14 15 16 |
# File 'lib/entity/block_proof.rb', line 14 def get_public_key @public_key end |
#get_signature ⇒ String
Returns signature.
19 20 21 |
# File 'lib/entity/block_proof.rb', line 19 def get_signature @signature end |