Files
supervisor/test_keypairs.md

2.8 KiB

Test Keypairs for Supervisor Auth

These are secp256k1 keypairs for testing the supervisor authentication system.

Keypair 1 (Alice - Admin)

Private Key: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
Public Key:  0x04a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea235
Address:     0x1234567890abcdef1234567890abcdef12345678

Keypair 2 (Bob - User)

Private Key: 0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321
Public Key:  0x04d0de0aaeaefad02b8bdf8a56451a9852d7f851fee0cc8b4d42f3a0a4c3c2f66c1e5e3e8e3c3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e
Address:     0xfedcba0987654321fedcba0987654321fedcba09

Keypair 3 (Charlie - Register)

Private Key: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Public Key:  0x04e68acfc0253a10620dff706b0a1b1f1f5833ea3beb3bde6250d4e5e1e283bb4e9504be11a68d7a263f8e2000d1f8b8c5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e
Address:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Keypair 4 (Dave - Test)

Private Key: 0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Public Key:  0x04f71e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e8f6c7e
Address:     0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

Keypair 5 (Eve - Test)

Private Key: 0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
Public Key:  0x04a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0
Address:     0xcccccccccccccccccccccccccccccccccccccccc

Usage Examples

Using with OpenRPC Client

use secp256k1::{Secp256k1, SecretKey};
use hex;

// Alice's private key
let alice_privkey = SecretKey::from_slice(
    &hex::decode("1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef").unwrap()
).unwrap();

// Sign a message
let secp = Secp256k1::new();
let message = "Hello, Supervisor!";
// ... sign with alice_privkey

Using with Admin UI

You can use the public keys as identifiers when creating API keys:

  • Alice: 0x04a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd...
  • Bob: 0x04d0de0aaeaefad02b8bdf8a56451a9852d7f851fee0cc8b4d42f3a0a4c3c2f66c...

Testing Different Scopes

  1. Admin Scope - Use Alice's keypair for full admin access
  2. User Scope - Use Bob's keypair for limited user access
  3. Register Scope - Use Charlie's keypair for runner registration only

Notes

⚠️ WARNING: These are TEST keypairs only! Never use these in production!

The private keys are intentionally simple patterns for easy testing:

  • Alice: All 0x12...ef pattern
  • Bob: Reverse pattern 0xfe...21
  • Charlie: All 0xaa
  • Dave: All 0xbb
  • Eve: All 0xcc