struct

Jalopy::IPNS::Entry

Inherits Protobuf::Message < Struct < Value < Object

Constants

FIELDS = {1 => {name: :value, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :signatureV1, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :validityType, pb_type: ValidityType, crystal_type: ValidityType, cast_type: ValidityType?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :validity, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :sequence, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :ttl, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :pubKey, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :signatureV2, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :data, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : Protobuf::Buffer)
new(value : Slice(UInt8) | Nil = nil, signatureV1 : Slice(UInt8) | Nil = nil, validityType : ValidityType | Nil = nil, validity : Slice(UInt8) | Nil = nil, sequence : UInt64 | Nil = nil, ttl : UInt64 | Nil = nil, pubKey : Slice(UInt8) | Nil = nil, signatureV2 : Slice(UInt8) | Nil = nil, data : Slice(UInt8) | Nil = nil)

Class methods

build(key : Sodium::Sign::SecretKey, addr : String, seq : UInt64 = 0)
Source
from_protobuf(io)

Instance methods

[](key : String)
data
data=(data : Slice(UInt8) | Nil)
pubKey
pubKey=(pubKey : Slice(UInt8) | Nil)
sequence
sequence=(sequence : UInt64 | Nil)
signatureV1
signatureV1=(signatureV1 : Slice(UInt8) | Nil)
signatureV2
signatureV2=(signatureV2 : Slice(UInt8) | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf
ttl
ttl=(ttl : UInt64 | Nil)
validity
validity=(validity : Slice(UInt8) | Nil)
validityType
validityType=(validityType : ValidityType | Nil)
value
value=(value : Slice(UInt8) | Nil)