Class: Solana::Ruby::Kit::Keys::KeyPair
- Inherits:
-
T::Struct
- Object
- T::Struct
- Solana::Ruby::Kit::Keys::KeyPair
- Defined in:
- lib/solana/ruby/kit/keys/key_pair.rb
Overview
Represents an Ed25519 key pair: a signing key (private) and its corresponding verification key (public).
Mirrors TypeScript’s CryptoKeyPair:
{ privateKey: CryptoKey, publicKey: CryptoKey }
In TypeScript this wraps Web Crypto opaque CryptoKey handles. In Ruby, RbNaCl::SigningKey holds the 32-byte private key seed, and RbNaCl::VerifyKey holds the 32-byte public key.