Class: Sigstore::Rekor::Checkpoint::SignedCheckpoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/sigstore/rekor/checkpoint.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#checkpointObject

Returns the value of attribute checkpoint



22
23
24
# File 'lib/sigstore/rekor/checkpoint.rb', line 22

def checkpoint
  @checkpoint
end

#signed_noteObject

Returns the value of attribute signed_note



22
23
24
# File 'lib/sigstore/rekor/checkpoint.rb', line 22

def signed_note
  @signed_note
end

Class Method Details

.from_text(text) ⇒ Object



25
26
27
28
29
30
# File 'lib/sigstore/rekor/checkpoint.rb', line 25

def self.from_text(text)
  signed_note = SignedNote.from_text(text)
  checkpoint = LogCheckpoint.from_text(signed_note.note)

  new(signed_note:, checkpoint:)
end