Class: Runar::TestKeys::TestKeyPair
- Inherits:
-
Struct
- Object
- Struct
- Runar::TestKeys::TestKeyPair
- Defined in:
- lib/runar/test_keys.rb
Overview
A pre-generated test keypair with all derived values.
All fields are hex-encoded strings to match the Ruby convention used throughout the Runar SDK (ByteString values are represented as hex).
Instance Attribute Summary collapse
-
#name ⇒ String
lowercase name of this test identity.
-
#priv_key ⇒ String
64-char hex private key scalar.
-
#pub_key ⇒ String
66-char hex compressed secp256k1 public key (33 bytes).
-
#pub_key_hash ⇒ String
40-char hex HASH160 of pub_key (20 bytes).
-
#test_sig ⇒ String
hex-encoded DER ECDSA signature over TEST_MESSAGE.
Instance Attribute Details
#name ⇒ String
lowercase name of this test identity
32 33 34 |
# File 'lib/runar/test_keys.rb', line 32 def name @name end |
#priv_key ⇒ String
64-char hex private key scalar
32 33 34 |
# File 'lib/runar/test_keys.rb', line 32 def priv_key @priv_key end |
#pub_key ⇒ String
66-char hex compressed secp256k1 public key (33 bytes)
32 33 34 |
# File 'lib/runar/test_keys.rb', line 32 def pub_key @pub_key end |
#pub_key_hash ⇒ String
40-char hex HASH160 of pub_key (20 bytes)
32 33 34 |
# File 'lib/runar/test_keys.rb', line 32 def pub_key_hash @pub_key_hash end |
#test_sig ⇒ String
hex-encoded DER ECDSA signature over TEST_MESSAGE
32 33 34 |
# File 'lib/runar/test_keys.rb', line 32 def test_sig @test_sig end |