Class: ArkEcosystem::Crypto::Identity::PublicKey
- Inherits:
-
Object
- Object
- ArkEcosystem::Crypto::Identity::PublicKey
- Defined in:
- lib/arkecosystem/crypto/identity/public_key.rb
Overview
The identity utility for a public key.
Class Method Summary collapse
Class Method Details
.from_secret(secret) ⇒ Object
8 9 10 |
# File 'lib/arkecosystem/crypto/identity/public_key.rb', line 8 def self.from_secret(secret) PrivateKey.from_secret(secret).public_key end |
.from_secret_as_hex(secret) ⇒ Object
12 13 14 |
# File 'lib/arkecosystem/crypto/identity/public_key.rb', line 12 def self.from_secret_as_hex(secret) from_secret(secret).unpack('H*').first end |