Class: Solana::Ruby::Kit::Keys::Signature
- Inherits:
-
Object
- Object
- Solana::Ruby::Kit::Keys::Signature
- Extended by:
- T::Sig
- Defined in:
- lib/solana/ruby/kit/keys/signatures.rb
Overview
A validated base58-encoded Ed25519 signature string (64 bytes on-wire). Mirrors TypeScript:
type Signature = Brand<EncodedString<string, 'base58'>, 'Signature'>
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Signature
constructor
A new instance of Signature.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Signature
Returns a new instance of Signature.
21 22 23 |
# File 'lib/solana/ruby/kit/keys/signatures.rb', line 21 def initialize(value) @value = T.let(value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18 19 20 |
# File 'lib/solana/ruby/kit/keys/signatures.rb', line 18 def value @value end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 |
# File 'lib/solana/ruby/kit/keys/signatures.rb', line 29 def ==(other) !!(other.is_a?(Signature) && @value == other.value) end |
#to_s ⇒ Object
26 |
# File 'lib/solana/ruby/kit/keys/signatures.rb', line 26 def to_s = @value |