Class: Runar::TestKeys::TestKeyPair

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#nameString

lowercase name of this test identity

Returns:

  • (String)

    the current value of name



32
33
34
# File 'lib/runar/test_keys.rb', line 32

def name
  @name
end

#priv_keyString

64-char hex private key scalar

Returns:

  • (String)

    the current value of priv_key



32
33
34
# File 'lib/runar/test_keys.rb', line 32

def priv_key
  @priv_key
end

#pub_keyString

66-char hex compressed secp256k1 public key (33 bytes)

Returns:

  • (String)

    the current value of pub_key



32
33
34
# File 'lib/runar/test_keys.rb', line 32

def pub_key
  @pub_key
end

#pub_key_hashString

40-char hex HASH160 of pub_key (20 bytes)

Returns:

  • (String)

    the current value of pub_key_hash



32
33
34
# File 'lib/runar/test_keys.rb', line 32

def pub_key_hash
  @pub_key_hash
end

#test_sigString

hex-encoded DER ECDSA signature over TEST_MESSAGE

Returns:

  • (String)

    the current value of test_sig



32
33
34
# File 'lib/runar/test_keys.rb', line 32

def test_sig
  @test_sig
end