Class: Casper::Entity::BlockProof

Inherits:
Object
  • Object
show all
Defined in:
lib/entity/block_proof.rb

Overview

BlockProof

Instance Method Summary collapse

Constructor Details

#initialize(proof = {}) ⇒ BlockProof

Returns a new instance of BlockProof.

Parameters:

  • proof (Hash) (defaults to: {})

Options Hash (proof):

  • :public_key (String)
  • :signature (String)


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_keyString

Returns public_key.

Returns:

  • (String)

    public_key



14
15
16
# File 'lib/entity/block_proof.rb', line 14

def get_public_key
  @public_key
end

#get_signatureString

Returns signature.

Returns:

  • (String)

    signature



19
20
21
# File 'lib/entity/block_proof.rb', line 19

def get_signature
  @signature
end