struct Fremkit::Net::Disc::V5::NodeID

Defined in:

net/discv5/node_id.cr

Constant Summary

BitSize = 512
ByteSize = ByteSize / 8

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Constructor Detail

def self.new(pub_key : Bytes) #

[View source]

Class Method Detail

def self.from_hex(id : String) : Self #

[View source]

Instance Method Detail

def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]