lib/bitcoin/key.rb
# Get the public key (in hex).
# In case the key was initialized with only
# a private key, the public key is regenerated.
Get the public key (in hex).
In case the key was initialized with only
a private key, the public key is regenerated.
Get the public key ( in hex ) . In case the key was initialized with only a private key the public key is regenerated .
def pub
      regenerate_pubkey unless @key.public_key
      return nil        unless @key.public_key
      @pubkey_compressed ? pub_compressed : pub_uncompressed
    end
def pub regenerate_pubkey unless @key . public_key return nil unless @key . public_key @pubkey_compressed ? pub_compressed : pub_uncompressed end
Get the public key (in hex).
Get the public key ( in hex ) .