class ArkEcosystem::Crypto::Identities::PrivateKey

The identity utility for a private key.

Public Class Methods

from_hex(private_key) click to toggle source
# File lib/arkecosystem/crypto/identities/private_key.rb, line 12
def self.from_hex(private_key)
  BTC::Key.new(private_key: BTC.from_hex(private_key))
end
from_passphrase(passphrase) click to toggle source
# File lib/arkecosystem/crypto/identities/private_key.rb, line 8
def self.from_passphrase(passphrase)
  BTC::Key.new(private_key: Digest::SHA256.digest(passphrase))
end